Professional Web Applications Themes

www root directory for Apache - Linux Setup, Configuration & Administration

I have a new Linux 9.0 server that was setup ahead of time. When I go to [url]http://209.204.172.137:8080[/url], I get the default page. httpd.conf says that root directory is /var/www/html, however there is not an index.html file in it and when I place an index.html file in the directory and use [url]http://209.204.172.137:8080/index.html[/url] the file cannot be found. How can I determine the root for 209.204.172.137:8080? Lost..... Todd...

  1. #1

    Default www root directory for Apache

    I have a new Linux 9.0 server that was setup ahead of time. When I go
    to [url]http://209.204.172.137:8080[/url], I get the default page.

    httpd.conf says that root directory is /var/www/html, however there is
    not an index.html file in it and when I place an index.html file in the
    directory and use [url]http://209.204.172.137:8080/index.html[/url] the file cannot
    be found.

    How can I determine the root for 209.204.172.137:8080?

    Lost.....

    Todd

    Todd Cary Guest

  2. #2

    Default Re: www root directory for Apache

    On Tue, 01 Jul 2003 05:29:43 +0000, Todd Cary wrote:

    I have a new Linux 9.0 server that was setup ahead of time. When I go
    to [url]http://209.204.172.137:8080[/url], I get the default page.

    httpd.conf says that root directory is /var/www/html, however there is
    not an index.html file in it and when I place an index.html file in the
    directory and use [url]http://209.204.172.137:8080/index.html[/url] the file cannot
    be found.

    How can I determine the root for 209.204.172.137:8080?

    -------

    Try [url]http://209.204.172.137/index.html[/url]


    Adam Haeder Guest

  3. #3

    Default Re: www root directory for Apache

    In article <3F0181BB.1000702aristesoftware.com>, Todd Cary wrote:
    > Adam -
    >
    > I am bringing a new server online and until I have it completely setup
    > correctly, Apache is set to port 8080. The old server is set to port 80
    > and I want to move the "www root" files to the new one and then test it
    > with [url]http://209.204.172.137:8080[/url] . Am I missing something here?
    >
    > Todd
    >
    > Adam Haeder wrote:
    >> On Tue, 01 Jul 2003 05:29:43 +0000, Todd Cary wrote:
    >>
    >> I have a new Linux 9.0 server that was setup ahead of time. When I go
    >> to [url]http://209.204.172.137:8080[/url], I get the default page.
    >>
    >> httpd.conf says that root directory is /var/www/html, however there is
    >> not an index.html file in it and when I place an index.html file in the
    >> directory and use [url]http://209.204.172.137:8080/index.html[/url] the file cannot
    >> be found.
    >>
    >> How can I determine the root for 209.204.172.137:8080?
    >>
    >> -------
    >>
    >> Try [url]http://209.204.172.137/index.html[/url]
    Hi, don't top post. Bottom post like the cool kids.

    I'm a little confused. Is [url]http://209.204.172.137[/url] the IP address
    of the new web server and the old web server or does the old web
    server at least have a different address?

    Anywho, your configuration should consist of the following:

    DoentRoot "/var/www/html"

    <Directory "/var/www/html">
    Options All
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>

    DirectoryIndex index.shtml index.shtm index.html index.htm

    Listen 8080 (optional really)

    Port 8080

    All these should exist in your Apache config. If the IP address
    of the new web server is different than the old one, there's no
    reason to run it on port 8080. Run it on port 80 and make your
    life easy.

    If you're doing Virtual Hosting, also consider:

    BindAddress 209.204.172.137

    or alternatively

    BindAddress *

    And then there are the various definitions for Virtual Hosts.


    --
    Seth H Holmes

    Seth H Holmes Guest

  4. #4

    Default Re: www root directory for Apache

    Seth H Holmes wrote:
    > In article <3F0181BB.1000702aristesoftware.com>, Todd Cary wrote:
    >
    >>Adam -
    >>
    >>I am bringing a new server online and until I have it completely setup
    >>correctly, Apache is set to port 8080. The old server is set to port 80
    >>and I want to move the "www root" files to the new one and then test it
    >>with [url]http://209.204.172.137:8080[/url] . Am I missing something here?
    >>
    >>Todd
    >>
    >>Adam Haeder wrote:
    >>
    >>>On Tue, 01 Jul 2003 05:29:43 +0000, Todd Cary wrote:
    >>>
    >>>I have a new Linux 9.0 server that was setup ahead of time. When I go
    >>>to [url]http://209.204.172.137:8080[/url], I get the default page.
    >>>
    >>>httpd.conf says that root directory is /var/www/html, however there is
    >>>not an index.html file in it and when I place an index.html file in the
    >>>directory and use [url]http://209.204.172.137:8080/index.html[/url] the file cannot
    >>>be found.
    >>>
    >>>How can I determine the root for 209.204.172.137:8080?
    >>>
    >>>-------
    >>>
    >>>Try [url]http://209.204.172.137/index.html[/url]
    >>
    >
    > Hi, don't top post. Bottom post like the cool kids.
    >
    > I'm a little confused. Is [url]http://209.204.172.137[/url] the IP address
    > of the new web server and the old web server or does the old web
    > server at least have a different address?
    >
    > Anywho, your configuration should consist of the following:
    >
    > DoentRoot "/var/www/html"
    >
    > <Directory "/var/www/html">
    > Options All
    > AllowOverride None
    > Order allow,deny
    > Allow from all
    > </Directory>
    >
    > DirectoryIndex index.shtml index.shtm index.html index.htm
    >
    > Listen 8080 (optional really)
    >
    > Port 8080
    >
    > All these should exist in your Apache config. If the IP address
    > of the new web server is different than the old one, there's no
    > reason to run it on port 8080. Run it on port 80 and make your
    > life easy.
    >
    > If you're doing Virtual Hosting, also consider:
    >
    > BindAddress 209.204.172.137
    >
    > or alternatively
    >
    > BindAddress *
    >
    > And then there are the various definitions for Virtual Hosts.
    >
    >
    Seth -

    <<<
    I'm a little confused.
    >>>
    [url]http://209.204.172.137[/url] is my fixed IP for the DSL. The router routes
    port 80 to 192.168.0.12 and port 8080 to 192.168.0.22.

    Here are the values from httpd.conf:

    ServerName 192.168.0.22
    DoentRoot "/var/www/html"

    <Directory "/var/www/html">
    Options Indexes Includes FollowSymLinks

    AllowOverride None
    Allow from from all


    Order allow,deny
    </Directory>

    I am using the Red Hat graphical tool to set the values.

    [url]http://192.168.0.22:8080[/url] or [url]http://209.204.172.137:8080[/url] gives me the
    Apache Test Page; not the index.html I have in the /var/www/html/ directory.

    [url]http://192.168.0.22:8080/index.html[/url] gives the error that the page cannot
    be found.

    Todd

    Todd Cary Guest

  5. #5

    Default Re: www root directory for Apache

    In article <3F0195E3.4080001aristesoftware.com>, Todd Cary wrote:
    > [url]http://209.204.172.137[/url] is my fixed IP for the DSL. The router routes
    > port 80 to 192.168.0.12 and port 8080 to 192.168.0.22.
    Details like this become important.
    > Here are the values from httpd.conf:
    >
    > ServerName 192.168.0.22
    > DoentRoot "/var/www/html"
    >
    ><Directory "/var/www/html">
    > Options Indexes Includes FollowSymLinks
    >
    > AllowOverride None
    > Allow from from all
    >
    >
    > Order allow,deny
    ></Directory>
    >
    > I am using the Red Hat graphical tool to set the values.
    >
    > [url]http://192.168.0.22:8080[/url] or [url]http://209.204.172.137:8080[/url] gives me the
    > Apache Test Page; not the index.html I have in the /var/www/html/ directory.
    >
    > [url]http://192.168.0.22:8080/index.html[/url] gives the error that the page cannot
    > be found.
    What does the "Port" line look like in your httpd.conf?

    Did you restart apache after making changes?

    If you really want to know where it's looking, check the apache
    logs.


    --
    Seth H Holmes

    Seth H Holmes Guest

  6. #6

    Default Re: www root directory for Apache

    Groovy hepcat Todd Cary was jivin' on Tue, 01 Jul 2003 14:07:59 GMT in
    comp.os.linux.setup.
    Re: www root directory for Apache's a cool scene! Dig it!
    >[url]http://192.168.0.22:8080[/url] or [url]http://209.204.172.137:8080[/url] gives me the
    >Apache Test Page; not the index.html I have in the /var/www/html/ directory.
    That's a file called index.shtml.
    >[url]http://192.168.0.22:8080/index.html[/url] gives the error that the page cannot
    >be found.
    Are you sure you didn't call it index.htm (without the l) by
    mistake? How did you put the file there? Did you create it there with
    some Linux based text editor, or did you copy it from a Windows
    machine? If the latter, was the filename converted to upper case or
    mixed case by Windows? Does it have the correct permissions? The file
    must be readable by all.
    Try the following (from the Linux shell prompt - logged in as root
    or su as root):

    cd /var/www/html
    ls -l

    Now, what do you see? Do you see your index.html file? Does it look
    like it should, no capital letters in the name? Does it have read
    permissions?

    --

    Dig the even newer still, yet more improved, sig!

    [url]http://alphalink.com.au/~phaywood/[/url]
    "Ain't I'm a dog?" - Ronny Self, Ain't I'm a Dog, written by G. Sherry & W. Walker.
    I know it's not "technically correct" English; but since when was rock & roll "technically correct"?
    Peter Shaggy Haywood Guest

Similar Threads

  1. Accessing images above root www directory with Flash
    By reidman24 in forum Macromedia Flash Data Integration
    Replies: 0
    Last Post: January 6th, 01:14 AM
  2. login error:cannot not find root directory
    By perikillo in forum FreeBSD
    Replies: 1
    Last Post: February 17th, 03:40 PM
  3. Why do I have 20,000 empty Acr*.TMP files on my system root directory?
    By Jack_Mama@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 2
    Last Post: April 29th, 07:45 AM
  4. Site Root directory?
    By Rv! in forum PHP Development
    Replies: 4
    Last Post: October 11th, 10:04 AM
  5. Can I Change root directory???
    By rideonmidnightrudy webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 4
    Last Post: July 9th, 09:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139