Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-31-2005, 11:58 AM
|
#1
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Rep:
|
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?
|
|
|
10-31-2005, 12:34 PM
|
#2
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464
Rep: 
|
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.
|
|
|
10-31-2005, 01:31 PM
|
#3
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Original Poster
Rep:
|
I checked my apache2.conf and can't find any document root. Anyone know how to fix this with Apache2?
|
|
|
10-31-2005, 04:56 PM
|
#4
|
Member
Registered: Jun 2003
Distribution: RH 8.2, SuSE 9.0
Posts: 135
Rep:
|
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..
|
|
|
10-31-2005, 06:17 PM
|
#5
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Original Poster
Rep:
|
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.
|
|
|
11-01-2005, 07:37 AM
|
#6
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Original Poster
Rep:
|
bump for help...
|
|
|
11-01-2005, 02:57 PM
|
#7
|
LQ Newbie
Registered: Jun 2004
Posts: 2
Rep:
|
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.
|
|
|
11-01-2005, 03:14 PM
|
#8
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Original Poster
Rep:
|
This is Apache2 which is not the latest version to my knowledge.
Apache/2.0.55 (Debian) Server
|
|
|
11-01-2005, 03:24 PM
|
#9
|
Senior Member
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 03:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|