Find the answer to your Linux question:
Results 1 to 4 of 4
So apache is working great however my site only contains one page and one image so it's nothing useful as you guys can see. The problem I have is that ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2004
    Location
    /US/FL/Orlando
    Posts
    94

    Apache Question/Problem


    So apache is working great however my site only contains one page and one image so it's nothing useful as you guys can see.

    The problem I have is that when you go to my website address which happens to be http://carlwill.dyndns.org , it then resolves to http://carlwill.dyndns.org/apache2-default/

    I know my index file is located under /var/www/apache2-default/ but when I move it to /var/www/index.html , and then restart the httpd service, it will not display my index.html file.

    Anyone know how to fix this so it's just under the /var/www/ directory?

  2. #2
    Linux Newbie deek's Avatar
    Join Date
    Mar 2005
    Location
    Fort Wayne, IN
    Posts
    248
    Did you change your document root in your apache config file? If not, it won't know where to look for it. It is normally at the top third of the file and should be easy to spot. Change your document root, restart and you should be good to go.
    Join the Open Source Revolution. Support GNU/Linux.

    Find me at: www.deeksworld.com
    Registered GNU/Linux User #395777

  3. #3
    Just Joined!
    Join Date
    May 2004
    Location
    /US/FL/Orlando
    Posts
    94
    I have been trying to located the document root however it seems impossible.

  4. #4
    Linux Newbie deek's Avatar
    Join Date
    Mar 2005
    Location
    Fort Wayne, IN
    Posts
    248
    Well, try opening it up in your favorite text editor and search for apache2-default...that should take you to the exact line you need to change...
    Join the Open Source Revolution. Support GNU/Linux.

    Find me at: www.deeksworld.com
    Registered GNU/Linux User #395777

Posting Permissions

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