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 |
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.
|
|
08-27-2003, 03:11 AM
|
#1
|
Member
Registered: Apr 2003
Distribution: ANY
Posts: 339
Rep:
|
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
|
|
|
08-27-2003, 04:15 AM
|
#2
|
Member
Registered: Aug 2003
Location: Belgium
Distribution: Debian (server), Kubuntu (desktop)
Posts: 248
Rep:
|
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?
|
|
|
08-27-2003, 05:03 AM
|
#3
|
Member
Registered: Apr 2003
Distribution: ANY
Posts: 339
Original Poster
Rep:
|
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.
|
|
|
08-27-2003, 06:10 AM
|
#4
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
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
|
|
|
08-27-2003, 08:29 AM
|
#5
|
Member
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109
Rep:
|
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.
|
|
|
08-27-2003, 02:47 PM
|
#6
|
Member
Registered: Apr 2003
Distribution: ANY
Posts: 339
Original Poster
Rep:
|
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 ....
|
|
|
08-27-2003, 03:21 PM
|
#7
|
Member
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109
Rep:
|
Where are the images located you are trying to link?
Are they within the boundries of the document root?
|
|
|
08-27-2003, 03:28 PM
|
#8
|
Member
Registered: Apr 2003
Distribution: ANY
Posts: 339
Original Poster
Rep:
|
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....
|
|
|
08-27-2003, 03:48 PM
|
#9
|
Member
Registered: Aug 2003
Location: Arizona
Distribution: Gentoo
Posts: 142
Rep:
|
Might help if you posted some logs :-D
|
|
|
08-27-2003, 03:48 PM
|
#10
|
Member
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109
Rep:
|
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
|
|
|
08-29-2003, 08:34 AM
|
#11
|
Member
Registered: Apr 2003
Distribution: ANY
Posts: 339
Original Poster
Rep:
|
I removed and replaced..........good to go now.....still not sure what was causing it though....
|
|
|
All times are GMT -5. The time now is 11:59 PM.
|
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
|
|