Looking in the directory where I supposed to run make there was no Makefile, just Makefile.bsd-wrapper and Makefile.tmpl
I did:
Code:
# make -f Makefile.bsd-wrapper
and something happened.. I don't know what, but the result was a new file appeared: Makefile
Then I followed the steps to do from userdir.patch:
Code:
# cd /usr/src/usr.sbin/httpd
# make clean && make && make install
The rebuild started and finished with the message:
Code:
+--------------------------------------------------------+
| You now have successfully built and installed the |
| Apache 1.3 HTTP server. To verify that Apache actually |
| works correctly you now should first check the |
| (initially created or preserved) configuration files |
| |
| /var/www/conf/httpd.conf
| |
| and then you should be able to immediately fire up |
| Apache the first time by running: |
| |
| /usr/sbin/apachectl start
| |
| Or when you want to run it with SSL enabled use: |
| |
| /usr/sbin/apachectl startssl
| |
| Thanks for using Apache. The Apache Group |
| http://www.apache.org/ |
+--------------------------------------------------------+
I've opened the /var/www/conf/httpd.conf file but seems unchanged
nothing new for userdir. Searched my system for mod_userdir.so.. nothing
Started Apache:
Code:
# apachectl start
/usr/sbin/apachectl start: httpd started
Go to my user page: localhost/~paul
And the same answer.. couldn't find it.
Looking in the error_log, the Apache still look in htdocs for that directory instead in /home/paul/public_html:
Code:
[Mon Sep 17 20:02:37 2012] [error] [client 127.0.0.1] File does not exist: /htdocs/~paul
[Mon Sep 17 20:21:59 2012] [error] [client 192.168.2.20] File does not exist: /htdocs/~paul/index.html
It doesn't work either I try from server itself issuing localhost/~paul or from an external machine.
There is a file called index.html inside that directory.
The permissions to public_html are 755 and for index.html are 644 so the user www should be able to traverse the directory structure and get that file.
The UserDir configuration in httpd.conf is:
Code:
429 UserDir "public_html"
430 UserDir disabled
431 UserDir enabled paul
....
451 <Directory "/home/*/public_html">
452 AllowOverride FileInfo AuthConfig Limit
453 Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
454 <Limit GET POST OPTIONS PROPFIND>
455 Order allow,deny
456 Allow from all
457 </Limit>
458 <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
459 Order deny,allow
460 Deny from all
461 </Limit>
462 </Directory>
What I wrong? What can I done more? Is it correctly what I've done? Even mentioning that at least one part from the configuration is correct is a great help. I'm new to OpenBSD and I'm unsure about many things about it
Thanks for reading..