DaveC#
05-09-2001, 08:34 AM
I need help:
My subdomains are not working- I get a 403 error foer every subdomain
http://forums.cpfc.org/
for example
heres my virtual host directive
<VirtualHost forums.cpfc.org>
<Directory /home/cpfc/www/forums>
</Directory>
What do I need to change?
Any help gratefully recieved
kunal
05-09-2001, 11:15 AM
Have you setup your DNS correctly? Your DNS should have the entry like
subdomain.websiteaddress.com IN A websiteid
DaveC#
05-09-2001, 11:31 AM
Originally posted by kunal
Have you setup your DNS correctly? Your DNS should have the entry like
subdomain.websiteaddress.com IN A websiteid
Yes I have
Well, the 403 is a forbidden error. You want to make sure you have the correct permissions on the subdirectory.
DaveC#
05-09-2001, 12:45 PM
Originally posted by WeinBar
Well, the 403 is a forbidden error. You want to make sure you have the correct permissions on the subdirectory.
Well
http://cpfc.org/forums works
http://forums.cpfc.org/ fails
Same document root
kunal
05-09-2001, 12:54 PM
The 403 was for the Error Document..
Try this
<VirtualHost forums.cpfc.org>
<Directory /home/cpfc/www/forums/>
DirectoryIndex index.php
</Directory>
DaveC#
05-09-2001, 01:06 PM
Originally posted by kunal
The 403 was for the Error Document..
Try this
<VirtualHost forums.cpfc.org>
<Directory /home/cpfc/www/forums/>
DirectoryIndex index.php
</Directory>
But http://forums.cpfc.org/index.php brings up a 403 also :confused:
Rehan
05-09-2001, 01:39 PM
Originally posted by DaveC#
Well
http://cpfc.org/forums works
http://forums.cpfc.org/ fails
Same document root
Is your Apache server using suEXEC? Does the configuration for the cpfc.org server specify a user account? If so, you'll have to do the same for the new virtualhost configuration...
DaveC#
05-09-2001, 01:48 PM
Originally posted by Rehan
Is your Apache server using suEXEC? Does the configuration for the cpfc.org server specify a user account? If so, you'll have to do the same for the new virtualhost configuration...
It runs suEXEC but there are no special configs for cpfc.org
NameVirtualHost 64.65.14.178
<VirtualHost 64.65.14.178>
<Directory /usr/local/interface>
Options +ExecCGI +FollowSymLinks
AllowOverride All
</Directory>
<Directory /home/cpfc/www/serversecure>
Options +ExecCGI +FollowSymLinks
AllowOverride All
</Directory>
<Directory /home/cpfc/www>
Options All
Options +ExecCGI +FollowSymLinks
AllowOverride All
</Directory>
ServerAdmin webmaster@cpfc.org
DocumentRoot /home/cpfc/www
ServerName cpfc.org
ServerAlias www.cpfc.org
Group nobody
ErrorLog /home/cpfc/logs/cpfc.org.error_log
CustomLog /home/cpfc/logs/cpfc.org.access_log combined
ScriptAlias /cgi-bin/ /home/cpfc/www/cgi-bin/
ScriptAlias /www/ /home/cpfc/www/
ScriptAlias /_vti_bin/_vti_adm/ /home/cpfc/www/_vti_bin/_vti_adm/
ScriptAlias /_vti_bin/_vti_aut/ /home/cpfc/www/_vti_bin/_vti_aut/
ScriptAlias /_vti_bin/ /home/cpfc/www/_vti_bin/
</VirtualHost>
seems to be working now...