cant access subdomains

ultimategp1

Verified User
Joined
Jul 6, 2008
Messages
35
hi i created a subdomain but when i access it i get the following error

Forbidden

You don't have permission to access / on this server.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2 Server at st.sitename.com Port 80

how can i fix this? thanks!
 
Note that of main domain htaccess also operates for subdomain; typically, if you use mod_rewrite in htaccess of your main domain, you need just put into subdomain's htaccess:
RewriteEngine Off
 
where can i find the .htaccess for the main account? in the cgi-bin? so just to clear things out. When i access the main domains .htaccess i look for subdomain somewhere in there and turn off mod_rewrite for subdomain only?
 
Is there any index.html file? directory listing is disabled by default and if you
dont have an index.html, index.php, index.htm you get a forbidden msg.
 
Create a new .htaccess file in the subdomain directory, and then in that file put (only):
Code:
RewriteEngine Off
Jeff
 
Check your domain error log that is in /var/log/httpd/domains.
 
hey this is the error i see

[Tue Jul 22 11:16:03 2008] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Tue Jul 22 11:16:04 2008] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
 
that was the only thing in the file for the subdomain under /var/log/httpd/domains

what can i do then to access the subdomain?
 
hey smtalk thanks alot for this but it dident work either :(

but when i go to subdomain.site.com it dosent work

when i go to subdomain.site.com/index.html it works! :S

whats going on here? thanks!
 
in case someone had/has/will have same problem.

the problem is that public_html/.htaccess overrides everything in subfolders thus in this case subdomains too.

so you need to make changes to public_html/.htaccess in order for subdomains to work properly.

the modification is needed only when rewriteEngine is being used.


or you can change the default subdomain dir by separating it from public_html.
http://help.directadmin.com/item.php?id=199
 
Back
Top