HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   webroot vs. new site (http://www.howtoforge.com/forums/showthread.php?t=61087)

0dp 22nd March 2013 16:38

webroot vs. new site
 
Hi all,

I have a new question in line.

I initially uploaded the hosting website to the /var/www folder without creating a new site. It worked well but I needed to use subdomain through ISPconfig thus I moved the files to a new site I created in ISPconfig. Now when I browse to the URL it shows me the content of var/www instead of linking to the new site /var/www/domain.tld/web/*

Im unsure what can be the cause of this and how to troubleshoot it.

falko 23rd March 2013 18:57

Did you create the subdomain in ISPConfig?

0dp 24th March 2013 14:17

yes I did, and the subdomain works well.

if I type in subdomain.domain.tld its works fine but the domain.tld links to /var/www instead of the content of /var/www/domain.tld/web

its only for this one site.

UPDATE:

Actually now when I checked up on it again this morning I am meet by

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

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

0dp 24th March 2013 15:17

Thanks to the error message I was able to find another post by you mentioning that the permissions could be wrong, indeed they were.

I did a chmod 755 /var/www/domain.tld/web

and everything is working now.


All times are GMT +2. The time now is 05:40.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.