DocumentRoot reference

This is a discussion on DocumentRoot reference within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi all, I'm new to Apache, even though I've installed it a few times, this is my first ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2004
chrys
 
Posts: n/a
Default DocumentRoot reference

Hi all, I'm new to Apache, even though I've installed it a few times,
this is my first time doing it on Linux.

I have RedHat 8.0 and it pre-installed Apache 2.0

I've installed a webmail application on /home/appdir/webmail/html and
my original Apache configuration had /var/www/html/ as document root.

To test the webmail application I changed my document root to
/home/appdir/webmail/html (which contains an index.html page that
refreshes to webmail.cgi). When I type localhost on my webbrowser, it
takes me directly to the cgi application as it should, except that it
displays the code instead of running the application.

My first problem (which just sounds so stupid):
I went back to the conf file, changed document root to var/www/html.
but now, everytime I type localhost I get redirected/refreshed to
webmail.cgi in the appdir folder (since I don't have that index.html
page in the var/www/html folder). How do I go back to having it go to
that test apache page?

The reason why I wanted to change it back is because I decided that
maybe I shouldn't have the application in the /home/ directory, so I
was going to try to move it all to var/www/html...

Ok, I think this is it for now. I just wanted to go back to the page
that displays that Apache test page when I type localhost.

I really appreciate your help.
Thanks
Chrys
  #2 (permalink)  
Old 01-17-2004
Davide Bianchi
 
Posts: n/a
Default Re: DocumentRoot reference

chrys <chrysli100@theoremx.com> wrote:
> I went back to the conf file, changed document root to var/www/html.


The DocumentRoot is specified in two places, be sure that both are
pointing to the same directory, be sure to restart Apache after every
changes and be sure that is not your browser cache.

Davide

--
| Microsoft is to Software as McDonalds is to Cuisine.
  #3 (permalink)  
Old 01-18-2004
chrys
 
Posts: n/a
Default Re: DocumentRoot reference

Davide Bianchi <davideyeahsure@onlyforfun.net> wrote in message news:<buajt1$farkt$1@ID-18487.news.uni-berlin.de>...
> chrys <chrysli100@theoremx.com> wrote:
> > I went back to the conf file, changed document root to var/www/html.

>
> The DocumentRoot is specified in two places, be sure that both are
> pointing to the same directory, be sure to restart Apache after every
> changes and be sure that is not your browser cache.
>
> Davide


I've done all that, anywhere else you can think of? I even looked into
host files (I found two, one called host and the other host.conf (I
think)) and all I see throughout the system are references that link
IP address to "localhost", but nothing refers to the old directory I
had put in as DocumentRoot. Yet, it keeps going back to the old
page...

Chrys
  #4 (permalink)  
Old 01-19-2004
Davide Bianchi
 
Posts: n/a
Default Re: DocumentRoot reference

chrys <chrysli100@theoremx.com> wrote:
> I've done all that, anywhere else you can think of?


No. Unless you have virtual hosts configured.

Davide

--
| The day Micro$lop makes something that doesn't suck is probably the
| day they start making vacuum cleaners. --Ernst Jan Plugge
  #5 (permalink)  
Old 01-20-2004
chrys
 
Posts: n/a
Default Re: DocumentRoot reference

Davide Bianchi <davideyeahsure@onlyforfun.net> wrote in message news:<bufsor$h32ak$1@ID-18487.news.uni-berlin.de>...
> chrys <chrysli100@theoremx.com> wrote:
> > I've done all that, anywhere else you can think of?

>
> No. Unless you have virtual hosts configured.
>
> Davide


Hi Davide, I just wanted to say thank you for your help. I've had
"new" strange problems and have "re-posted" this from a different
angle, i.e. even though it still is related to httpd.conf (how can it
not be?) it might also be a browser problem...

Anyway, thanks a bunch

chrys
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:25 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0