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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |