Quote:
Originally Posted by qlands
This is the error log:
|
No errors there. Look for entries with the word
[error]. This is a fragment of my error log, notice the missing files:
Code:
Wed Jun 29 02:35:31 2011] [error] [client 127.0.0.1] File does not exist: /srv/httpd/htdocs/favicon.ico
[Wed Jun 29 02:35:37 2011] [error] [client 127.0.0.1] File does not exist: /mnt/www/books/favicon.ico
[Wed Jun 29 02:37:52 2011] [error] [client 127.0.0.1] File does not exist: /mnt/www/books/foo.html
If there are no errors, then great.
Quote:
Originally Posted by qlands
I though the problem was the I did not have the AddHandler cgi-script .cgi or the Options ExecCGI or that I did not had ServerName localhost (to remove the "qualified domain name" error) in httpd.conf. But even with those options I get the same problem.
|
As I mentioned above, I use apache as my local webserver, only for my personal use, and I've never seen that "domain name" error. Take a look at my files:
hosts
Code:
127.0.0.1 localhost
127.0.0.1 argus
127.0.0.1 books
httpd.conf
Code:
Listen 127.0.0.1:80
ServerName argus:80
DocumentRoot "/srv/httpd/htdocs"
Those are the only entries modified, the rest are at default values.
httpd-vhosts.conf
Code:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName argus
DocumentRoot /srv/httpd/htdocs
</VirtualHost>
<VirtualHost *:80>
ServerName books
DocumentRoot /mnt/www/books
</VirtualHost>
That's my very minimal setup for virtual hosts. It works for me. Perhaps if you try with a minimum configuration first and then start adding more configuration entries as you test the basics?
Take a look at apache's docs for virtual hosts:
http://httpd.apache.org/docs/2.2/vhosts/
As a suggestion, try using
[code][/code] tags to enclose your texts and examples, it keeps the formatting of the text intact.
Anyway, keep trying and good luck.