[RESOLVED] Newbie Apache Problem
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.
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.
Sorry for posting in the wrong forum, how do I get around this error, so that my page shows at www.example.com?
it sounds like your httpd.conf is pointing to the wrong path for DocBase
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.
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.
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.
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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)