LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-18-2005, 06:19 PM   #1
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
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
 
Old 01-18-2005, 10:03 PM   #2
angrybeaver
Member
 
Registered: Aug 2004
Location: .au
Distribution: debian, BSD
Posts: 104

Rep: Reputation: 17
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
 
Old 01-19-2005, 03:00 PM   #3
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291

Original Poster
Blog Entries: 5

Rep: Reputation: 58
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
 
Old 01-19-2005, 04:44 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291

Original Poster
Blog Entries: 5

Rep: Reputation: 58
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.

Last edited by comprookie2000; 01-19-2005 at 04:56 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 apache2-common WebDav timgerr Linux - Networking 1 08-25-2005 09:41 PM
A good home-networking site for Suse 9.1? kpachopoulos Linux - Newbie 1 08-11-2004 02:10 PM
how to uninstall apache2 which is installed by emerge apache2 flybirdlong Linux - Software 1 07-17-2004 11:46 AM
rhel for practice at home kapilmunjal Linux - Enterprise 5 05-07-2004 03:43 PM
Linux Practice Site ToeShot Linux - General 2 12-09-2001 01:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration