LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache var/www (https://www.linuxquestions.org/questions/linux-newbie-8/apache-var-www-747188/)

bmeserver 08-13-2009 12:49 AM

Apache var/www
 
I run an Ubuntu server with Apache2, Bind9, Postfix, MYSQL and Squid. My OS runs of sda which is encrypted. My db and web pages are in media/sdc1 a totally seperate HD. I have a further HD sdb1 which I use for backup and my swap is a usb allocated as sdd1. I administer with webmin. Recently my sda HD gave up the ghost and I was forced to install a new one. I installed Ubuntu server 9.10 onto the new HD. I have give my user account read write permission on media/sdc1/ so that Apache can access the web pages. All seems to be Ok and my web pages (7 running as virtual hosts) are listed in the Apache2 sites enabled folder.

The problem is when I connect to my server only the var/www is being shown on the internet? There seems to be something missing between my var/www and Apache2 sites-enabled connection?

My test web site is http://www.alt-it.tk

I am sure it is only something minor that I have forgotten.

Any help and comments would be highly appreciated

Thanks in advance

jeromeNP7 08-13-2009 04:46 AM

The default webroot for apache is /var/www/html, but configuration settings are usually stored in /etc/httpd/ in various files. Your /etc directory was on your corrupted disk, and the re-installed system certainly has only the default configuration. You will have to add all your virtual host settings again.

Linux

EricTRA 08-13-2009 05:12 AM

Hello,

OP stated that he used Apache2 so config files are not in /etc/httpd but in /etc/apache2 if default install.

Kind regards,

Eric

bmeserver 08-14-2009 09:56 PM

Solved
 
I made a sim link from var/www to sdc1 and ensured chmod and chown were the same on both ends


All times are GMT -5. The time now is 07:32 PM.