LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-27-2003, 03:11 AM   #1
deepsix
Member
 
Registered: Apr 2003
Distribution: ANY
Posts: 339

Rep: Reputation: 32
Apache 2.0 question


Hello....

Im trying to set up my http server on redhat 9.....
wich by default apache installed into /var/www/
I got the server up and running and replaced the default noindex page in /var/www/error with my own default page and it works great...but..... when ever I try to link my default page to another page
or an image it doesnt work the only images I can put on the page are ones from the internet. At first I thought it may be because I have
document root set to /var/www/html and my default page is in /var/www/error/ so I edited the httpd.conf file and mv the default page to /var/www/html then all I get is a 403 and a 404 document not found. Any help or guidance appreciated (im used to apache running right out of the box and the directory used to be in /home/httpd/html..ahhh!)......I searched the manual but wasnt anything dealing with this subject specifically.....and google wasnt any help either.....
thanks in advance
 
Old 08-27-2003, 04:15 AM   #2
nephilim
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Debian (server), Kubuntu (desktop)
Posts: 248

Rep: Reputation: 30
This isn' a solution to your problem but just an extra question, sorry about that: isn't /var/www just a link to apache/htdocs?
 
Old 08-27-2003, 05:03 AM   #3
deepsix
Member
 
Registered: Apr 2003
Distribution: ANY
Posts: 339

Original Poster
Rep: Reputation: 32
I dunno Im confused......on my suse box apache installed and automatically created a directory /home/httpd and that was where I used to put all my pages....(that was apache 1.3).......
but in the file for 2.0 it tells me that all the pages go into /var/www/html ???...... and says that if upgrading from an older version to move all directories from /home/httpd to /var/www/html ???? am i reading this right?.......arggh.....

Last edited by deepsix; 08-27-2003 at 05:06 AM.
 
Old 08-27-2003, 06:10 AM   #4
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
As far as I remember the default setup on redhat is indeed

/var/www/html

for the document root where you should all your pages

just wondering, if you copied stuff from a previous installation maybe the links and references in the html will be invalid if they contain absolute paths instead of relative one's
 
Old 08-27-2003, 08:29 AM   #5
Cooner
Member
 
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109

Rep: Reputation: 15
I don't know what you have changed to this point but if all your settings in your httpd.conf were at their installed default then your default index.html should be placed in the /var/www/html directory. I never mess with the noindex.html file because once your index.html file is placed in the root /var/www/html you will never see it. Or maybe I am just not understanding what you are trying to acomplish.
 
Old 08-27-2003, 02:47 PM   #6
deepsix
Member
 
Registered: Apr 2003
Distribution: ANY
Posts: 339

Original Poster
Rep: Reputation: 32
I put an index file in /var/www/html and I get my default webpage.
but I cannot link images or other pages to my default page (I can link
images and pages from the internet)
and the only thing ive changed from the default conf is replace the noindex.html with my own page and i edited the httpd.conf file to include my e-mail and ip ....
 
Old 08-27-2003, 03:21 PM   #7
Cooner
Member
 
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109

Rep: Reputation: 15
Where are the images located you are trying to link?
Are they within the boundries of the document root?
 
Old 08-27-2003, 03:28 PM   #8
deepsix
Member
 
Registered: Apr 2003
Distribution: ANY
Posts: 339

Original Poster
Rep: Reputation: 32
yeah they are in the same directory as the webpage......and its not just images its other pages too..... but like I said I can link images and pages from the internet......I dunno did apache change something im totally not seeing?......I may have some bum modules or something......I ll remove and re-install and see what that does....
 
Old 08-27-2003, 03:48 PM   #9
Khabi
Member
 
Registered: Aug 2003
Location: Arizona
Distribution: Gentoo
Posts: 142

Rep: Reputation: 15
Might help if you posted some logs :-D
 
Old 08-27-2003, 03:48 PM   #10
Cooner
Member
 
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109

Rep: Reputation: 15
FYI, I have no problems on mine with Apache 2 and I run 5 virtual domains.
I copied these from a server running Apache 1.3.27
 
Old 08-29-2003, 08:34 AM   #11
deepsix
Member
 
Registered: Apr 2003
Distribution: ANY
Posts: 339

Original Poster
Rep: Reputation: 32
I removed and replaced..........good to go now.....still not sure what was causing it though....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Question - (apache?) pylon42 Linux - General 7 03-23-2005 08:55 AM
Apache Question Sideshow Linux - Networking 6 02-13-2004 06:31 PM
another apache question peteABK Linux - Software 8 05-27-2003 03:58 AM
Apache question plisken Linux - Software 1 02-25-2003 03:40 PM
apache question davsingl67 Linux - Newbie 1 12-11-2002 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:59 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