I just changed the permissions to 755 that Apache will write to. I've edited so that I can use /home/username/public_html for apache:
Just how it is explained in the httpd.conf file:
<ifmodule mod_userdir.c></ifmodule>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
#UserDir disable
#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disable" line above, and uncomment
# the following line instead:
#
UserDir public_html
Then I did I changed my virtualhosts to this: I used an earlier post to make the
blackhole like you said.
# Custom virtualhosts
NameVirtualHost ipadress:80
<virtualhost ipadress:80></virtualhost>
## -- DEFAULT: should NEVER get here normally!
ServerName nothing.here
ServerAdmin abuse@127.0.0.1
DocumentRoot /var/www/html/
ErrorLog /var/log/httpd/sniffer_error.log
CustomLog /var/log/httpd/sniffer_access.log combined
Loglevel warn
ScriptAlias /cgi-bin /websites/.blackhole
## this redirects any sniffers over to the right page...
#AliasMatch ^/(.*) /websites/.blackhole/index.php
<virtualhost ipadress:80></virtualhost>
ServerAlias
www.feedmebits.nl
ServerAdmin maarten@feedmebits.nl
DocumentRoot /home/www/public_html/feedmebits.nl
ServerName feedmebits.nl
ErrorLog /log/httpd/websites/feedmebits.nl/error.log
CustomLog /logs/httpd/websites/feedmebits.nl/access.log combined
<directory></directory>
AllowOverride None
order allow,deny
allow from all
Options Indexes Includes FollowSymLinks
but for the the virtualhost feedmebits.nl CustomLog with the option combined apache fails to start.
When I comment it out apache starts, and when I unocomment it and remove the option combined I get an error:
Starting httpd: Syntax error on line 1024 of /etc/httpd/conf/httpd.conf:
CustomLog takes two or three arguments, a file name, a custom log format string or format name, and an optional "env=" clause (see docs)
[FAILED]
So I uncommented CustomLog for now.
Then I did like before. I used the two commands to give apache access to my home directories where my website data is:
chgrp -R apache /home/www/public_html
chmod -R g+w /home/www/public_html
then I chmod 755 /home/www/public_html
I made a normal html page(index.htm) for my blackhole cuz I wasn't exactly sure how to finish it off.
But when I go there(using my ip) I just get my normal apache test page and when I do ip/index.htm I get the page(blackhole)
I just set my domein name to my ip today so I think it takes 24-48 hours before that's active.
However I am not able to see my website now which is under /home/www/public_html
Will still do some more searching, but it's first time working with apache so I haven't figured out
what I did wrong yet. After I get this sorted out and working I will have a go for installing/configuring suPHP.