Find the answer to your Linux question:
Results 1 to 6 of 6
So just got Apache installed and working now have my web pages uploaded, but when I go to my URL it shows the apache page and users don't know the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    xbn
    xbn is offline
    Just Joined!
    Join Date
    Jun 2012
    Posts
    9

    Just installed Apache


    So just got Apache installed and working now have my web pages uploaded, but when I go to my URL it shows the apache page and users don't know the full url to login. How do I redirect it, I'm not using any web panel.

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    Is this on a Local Area Network? Is it hosted by some web hosting company and available on the www? I'm not sure how anyone would know the url if you don't tell them? Maybe some more details would help someone to help you.

  3. #3
    xbn
    xbn is offline
    Just Joined!
    Join Date
    Jun 2012
    Posts
    9
    Quote Originally Posted by yancek View Post
    Is this on a Local Area Network? Is it hosted by some web hosting company and available on the www? I'm not sure how anyone would know the url if you don't tell them? Maybe some more details would help someone to help you.
    It's in the www folder, and it's a live webpage. The only problem is when going to the URL it displays the Apache page. I'd just like to know how to redirect it.

  4. #4
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    If it is just on a local machine in the /var/www folder, you will get the Apache It Works page by opening a browser and typing: http://localhost/index.html, and usually without the 'index.html' you would get the web page. So if you have another page in that directory, change the 'index.html' to whatever the page is you want to open, example:

    http://localhost/mywebpage.html

    If you want it to go to a file in a sub-directory, you would need to include that.

  5. #5
    xbn
    xbn is offline
    Just Joined!
    Join Date
    Jun 2012
    Posts
    9
    I see, there is no index.html page only my own index.php along with the rest of my web files in that folder, var/www/html/webfolder/all my files.

    What if I move all my files to var/www/html and just remove the directory webfolder, I didn't want to do this because I think it might be a security issue.

  6. #6
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    Different distributions use different directories. Some use /var/www/htdocs, some use /var/www/html and others may use a different path. This should show in the httpd.conf file. If you want to access a file in /var/www/html/webfolder you would need to give the full path: http://localhost/webfolder/index.php, from your example above. It expects to find the files in /var/www/html so if they are in a sub-folder you need to put it in the path. Posting what you actually use might be helpful.

Posting Permissions

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