View Full Version : cant access subdomains
ultimategp1
07-19-2008, 10:15 AM
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!
proHSP
07-19-2008, 01:13 PM
Is there any .htaccess file in parent or this directories?
ultimategp1
07-19-2008, 01:52 PM
no there is no .htaccess file in the subdomain, but there is in the main domain yes
proHSP
07-19-2008, 03:43 PM
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
ultimategp1
07-19-2008, 04:09 PM
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?
tsiou
07-19-2008, 05:57 PM
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.
ultimategp1
07-19-2008, 09:41 PM
yea there is a index.html file but i still get the error :(
nobaloney
07-20-2008, 01:16 PM
Create a new .htaccess file in the subdomain directory, and then in that file put (only):
RewriteEngine Off
Jeff
ultimategp1
07-20-2008, 05:42 PM
hey this did not work :(
smtalk
07-21-2008, 01:08 AM
Check your domain error log that is in /var/log/httpd/domains.
ultimategp1
07-22-2008, 01:49 PM
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!?
nobaloney
07-23-2008, 01:12 PM
These are warnings; not errors. They shouldn't affect anything.
Jeff
ultimategp1
07-23-2008, 01:45 PM
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?
ultimategp1
07-25-2008, 10:29 PM
hey ok i thnk i found the error
[Sat Jul 26 00:06:03 2008] [warn] Init: SSL server IP/port conflict: www.site.com:443 (/usr/local/directadmin/data/users/username/httpd.conf:48) vs. www.sub.site.com:443
how can i fix this? thanks!
ultimategp1
07-26-2008, 12:24 PM
any help with this please? thanks! i really need this working
smtalk
07-26-2008, 12:32 PM
http://www.directadmin.com/forum/showthread.php?t=26233
ultimategp1
07-26-2008, 04:26 PM
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!
dvnscr
08-23-2010, 08:13 AM
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
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.