LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Making Apache Aware of a WebSite (https://www.linuxquestions.org/questions/linux-newbie-8/making-apache-aware-of-a-website-720017/)

sefarlow 04-18-2009 07:02 AM

Making Apache Aware of a WebSite
 
I am running Debian Lenny and have apache 2 up and running. Configured DDClient with my domain name.
How do I make Apache aware of/enable a webpage I created in /home/www ?
I have searched apache howto's and they are a bit confusing. Do I need to edit httpd.conf and what goes in it? Right now it is a 0 byte file.

your_shadow03 04-18-2009 07:20 AM

Explore To /etc/apache2/sites-enabled and edit the VirtualHost Entry
Code:

<VirtualHost>
ServerName localhost
DocumentRoot /var/www/html
ServerRoot root
Errorlog < leave this as what it is>
CustomLog < leave this too>
</VirtualHost>

Put any index.html file there under /var/www/html directory
Dont forget to restart the apache2 service.


All times are GMT -5. The time now is 10:42 AM.