Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

DocumentRoot reference

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Problems with jk2 on XP  
Author Message
chrysli100

External


Since: Jan 16, 2004
Posts: 7



(Msg. 1) Posted: Fri Jan 16, 2004 3:37 pm
Post subject: DocumentRoot reference
Archived from groups: alt>apache>configuration (more info?)

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

 >> Stay informed about: DocumentRoot reference 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Sat Jan 17, 2004 9:14 am
Post subject: Re: DocumentRoot reference [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

chrys <chrysli100 DeleteThis @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.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: DocumentRoot reference 
Back to top
Login to vote
chrysli100

External


Since: Jan 16, 2004
Posts: 7



(Msg. 3) Posted: Sun Jan 18, 2004 4:04 pm
Post subject: Re: DocumentRoot reference [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi <davideyeahsure.RemoveThis@onlyforfun.net> wrote in message news:<buajt1$farkt$1@ID-18487.news.uni-berlin.de>...
 > chrys <chrysli100.RemoveThis@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<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: DocumentRoot reference 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Mon Jan 19, 2004 9:16 am
Post subject: Re: DocumentRoot reference [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

chrys <chrysli100.RemoveThis@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<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: DocumentRoot reference 
Back to top
Login to vote
chrysli100

External


Since: Jan 16, 2004
Posts: 7



(Msg. 5) Posted: Mon Jan 19, 2004 11:18 pm
Post subject: Re: DocumentRoot reference [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi <davideyeahsure DeleteThis @onlyforfun.net> wrote in message news:<bufsor$h32ak$1@ID-18487.news.uni-berlin.de>...
 > chrys <chrysli100 DeleteThis @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<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: DocumentRoot reference 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[Promo Codes]-Excellent Project/Managment & Development Re.. - I just purchased one of the best refernces I have read in helping with IT Projects/Programs & Development. This reference documents what other books have documented incorrectly. I also attended a CM seminar by this gentleman that was outstanding. ...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]