LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   apache2 Home practice site (https://www.linuxquestions.org/questions/linux-networking-3/apache2-home-practice-site-279476/)

comprookie2000 01-18-2005 06:19 PM

apache2 Home practice site
 
I have gentoo set up as a home-router-server and I have gentoo on this box(I'm new at all of this )this box(192.168.0.2)crossover cable -> router-practice-server(192.168.0.1)->internet.When I put abbottdavid in a browser I get this;Apache/2.0.52 (Gentoo/Linux) mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.0.3 Server at localhost Port 80.I would like to put something on the page but don't know where to start.Just give me some links and point me in the right direction.I don't want it on the net,just something for me to learn.The only ports open is the lan and I use the printer(samba)on the router.thanks

angrybeaver 01-18-2005 10:03 PM

The 'DocumentRoot' directive usually points to /var/www by default, so have a look for that directory and place some content into the directory. If that's not it, take a look at your httpd.conf file and search for the global DocumentRoot variable to work out where it's looking for local content.

Usually during the install process, a 'welcome to apache webserver' page (or something) will be installed so that you can test the servers is running. If you didn't get this page when you connected, it may be something a little strange, but see how you go.

cheers,

-AB

comprookie2000 01-19-2005 03:00 PM

Thanks,I see that and it points to /var/www/localhost/htdocs.Inside htdocs are the banners ect and text files in most languages,I edited the en one but did not change the page.Do I need a sample page to point DocumentRoot to or should I add a UserDir.On gentoo I don't have htttd files all the conf files are /etc/apache2/apache2.conf and /etc/conf.d/apache2 Here is the doc on Usrdir http://httpd.apache.org/docs-2.0/howto/public_html.html Do I add that to the same file that the DocumentRoot is in?I need a push in the right direction,thanks

comprookie2000 01-19-2005 04:44 PM

I changed DocumentRoot to /home/www/abbottdavid in both /etc/apache2/apache2.conf and /etc/apache2/commonapache2.conf and I can't get it to read that file.Where is it getting the Test Page from?
[edit] O.K its reading it now,I restarted the server,now whats next.


All times are GMT -5. The time now is 10:43 PM.