www.webdeveloper.com
Results 1 to 8 of 8

Thread: [RESOLVED] Newbie Apache Problem

  1. #1
    Join Date
    Aug 2007
    Posts
    7

    resolved [RESOLVED] Newbie Apache Problem

    Hi,

    I have recently been trying to upload a website onto an apache server. When I upload the site, i still see the apache test page, which says 'You may now add content to the directory /var/www/html/'

    I did that but now, when i go to my website, www.example.com, i still see the apache test page, however when i go to www.example.com/var/www/html/index.html,
    i see the homepage.

    How can i get rid of the test page to show me the homepage??
    Help is appreciated.

    Thanx

  2. #2
    Join Date
    May 2004
    Location
    FL
    Posts
    3,453
    The server is set to load a default page and/or extension, e.g., index.html. If it doesn't find it, you receive the error message unless you go directly to the page.
    Lee

    ""Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."" -- Sir Winston Churchill

  3. #3
    Join Date
    Aug 2007
    Posts
    7
    Sorry for posting in the wrong forum, how do I get around this error, so that my page shows at www.example.com?

  4. #4
    Join Date
    Aug 2005
    Location
    The Garden State
    Posts
    5,634
    it sounds like your httpd.conf is pointing to the wrong path for DocBase
    Acceptable Use | SQL Forum FAQ | celery is tasteless | twitter

    celery is tasteless - currently needing some UI time

  5. #5
    Join Date
    Aug 2007
    Posts
    7
    when i use filezilla( which I am using to upload the site) I can not see any .htaccess

    how do i access httpd.conf and change it?

    when i point my browser to www.example.com/etc/httpd/conf/httpd.conf i get a 'The requested URL /etc/httpd/conf/httpd.conf was not found on this server.' error.

  6. #6
    Join Date
    Apr 2008
    Posts
    171
    First off, /var/www/html/ is most likely the document root directory defined to your Web Server. That means that http://example.com will look to documents in the /var/www/html/ for rendering.

    It also looks like you may be uploading your home page to a directory path /var/www/html/, which is ultimately http://example.com/var/www/html/ from a browser and /var/www/html/var/www/html/ on the server.

    I think you will be good to go if you upload your home page to the base directory you FTP into without the /var/www/html/.

    Give that a try.

  7. #7
    Join Date
    Apr 2008
    Posts
    171
    Also, in order to edit the httpd.conf file, you will need root level access to your server. Contact your HSP to see if you have higher level access rights to your server and how you can get to that file and other configuration files below your document root path. Unless you have a control panel or some other interface tool, PuTTY is the SSH tool I use for editing my config files on my server.

    If the HSP does not allow you access to lower paths, then they might make the configuration changes for you, if you give them specific direction and content.

    HTH.

  8. #8
    Join Date
    Aug 2007
    Posts
    7
    Devel95,

    I removed everything i had uploaded and then re uploaded into the root directory.
    The page is showing up now.

    Thanks a lot for your help.

    I noticed that I have no access to the httpd.conf file, I will speak to the host company about that.

    T Hank U.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles