LinuxQuestions.org
Visit Jeremy's Blog.
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 10-31-2005, 10:58 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Apache Problem


So apache is working great however my site only contains one page and one image so it's nothing useful as you guys can see.

The problem I have is that when you go to my website address which happens to be http://carlwill.dyndns.org , it then resolves to http://carlwill.dyndns.org/apache2-default/

I know my index file is located under /var/www/apache2-default/ but when I move it to /var/www/index.html , and then restart the httpd service, it will not display my index.html file.

Anyone know how to fix this so it's just under the /var/www/ directory?
 
Old 10-31-2005, 11:34 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I have Apache 1.3.33 on my system, but I assume the config file for Apache 2 is somewhat similar. In your httpd.conf (or equivalent for Apache 2) is there a DocumentRoot setting? Maybe try changing that to /var/www and see if that helps.
 
Old 10-31-2005, 12:31 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
I checked my apache2.conf and can't find any document root. Anyone know how to fix this with Apache2?
 
Old 10-31-2005, 03:56 PM   #4
Recirqie
Member
 
Registered: Jun 2003
Distribution: RH 8.2, SuSE 9.0
Posts: 135

Rep: Reputation: 15
There are sometimes several conf. files, collected by one of them through include statements. So look through the others, e.g. default-server.conf, httpd.conf etc..
 
Old 10-31-2005, 05:17 PM   #5
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Yes - I have looked and am unable to find anything. I would prefer if someone specifically could tell me where to look and resolve this problem.
 
Old 11-01-2005, 06:37 AM   #6
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
bump for help...
 
Old 11-01-2005, 01:57 PM   #7
aassoum
LQ Newbie
 
Registered: Jun 2004
Posts: 2

Rep: Reputation: 0
Hi,

If you have an old version of Apache, you may have 3 configuration files: httpd.conf, access.conf and srm.conf and the DocumentRoot should be in srm.conf I think.

Ammar.
 
Old 11-01-2005, 02:14 PM   #8
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
This is Apache2 which is not the latest version to my knowledge.

Apache/2.0.55 (Debian) Server
 
Old 11-01-2005, 02:24 PM   #9
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
A google for "change apache2 default root" may help you - it brings back the exact answers. I had this problem when I moved to Apache 2. Also, maybe read Apache 2 docs to get a better understanding of the whole service to explain away other little niggly issues like your icons folder from another thread.
 
  


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
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 07:28 PM
RH9: PHP session problem (or Apache problem) fengcn Red Hat 0 12-01-2003 06:32 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM
apache problem lomaree Linux - Software 5 06-06-2003 04:26 PM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM

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

All times are GMT -5. The time now is 07:53 AM.

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