daniguzman
Technical User
I am trying to run 3 sites on my Linux server, with kernel 2.4.20 and apache 2.0.40. My httpd.conf is:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "/home/site1"
ServerName ServerAlias site1.cl *.site1.cl
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/home/site2"
ServerName ServerAlias site2.cl *.site2.cl
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/home/site3"
ServerName ServerAlias site3.com *.site3.com
</VirtualHost>
Only site3.com works, while both site1.cl and site2.cl show apache's test page. When I try to display specific html pages that I know are in the server, the response is "Forbidden You don't have permission to access xxx on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."
When I do httpd -t -D DUMP_VHOSTS I see all 3 sites on port 80 apparently fine, with default the first one.
I have tried all kind of things I have found w/o success, this is the best combination I have, with one running. The only difference I see is that both ".cl" sites fail while ".com" works. But all 3 sites use the same DNS server and the test page might mean that the sites are reachable. I also check the permissions for the folders and they are similar among them.
Any ideas?
Thanks a lot,
Dani Guzman
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "/home/site1"
ServerName ServerAlias site1.cl *.site1.cl
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/home/site2"
ServerName ServerAlias site2.cl *.site2.cl
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/home/site3"
ServerName ServerAlias site3.com *.site3.com
</VirtualHost>
Only site3.com works, while both site1.cl and site2.cl show apache's test page. When I try to display specific html pages that I know are in the server, the response is "Forbidden You don't have permission to access xxx on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."
When I do httpd -t -D DUMP_VHOSTS I see all 3 sites on port 80 apparently fine, with default the first one.
I have tried all kind of things I have found w/o success, this is the best combination I have, with one running. The only difference I see is that both ".cl" sites fail while ".com" works. But all 3 sites use the same DNS server and the test page might mean that the sites are reachable. I also check the permissions for the folders and they are similar among them.
Any ideas?
Thanks a lot,
Dani Guzman