Help - Search - Members - Calendar
Full Version: Defualt server web directory?
The Planet Forums > Control Panels > cPanel/WHM
Francis Brown
I'm sorry if this sounds simple but what direcotry is the defualt directory people will see when they access www.myserver.com?

I've tried putting index.htm and index.html files in /home/admin/public_html but it dosn't display the file.

Any suggestions?
beley
It's probably /var/www/html but check your httpd.conf file in /etc/httpd/conf and look for the "DocumentRoot" variable.
Francis Brown
Perhaps apache isn't setup right, I went to that directory and found an index.html file, and it's content suggests that If I had apache setup right it would display.

DocumentRoot /usr/local/apache/htdocs
blakex
QUOTE
Originally posted by Francis Brown
Perhaps apache isn't setup right, I went to that directory and found an index.html file, and it's content suggests that If I had apache setup right it would display.

DocumentRoot /usr/local/apache/htdocs
Yes, that is the directory shown and where you need to place the index.html file. See this thread for more that I started a few days ago:

http://forum.rackshack.net/showthread.php?...&threadid=28201
-ToXiC-
or you could could edit the httpd.conf to point to a new directory like i did..
blakex
QUOTE
Originally posted by -ToXiC-
or you could could edit the httpd.conf to point to a new directory like i did..
So let's say I go into httpd.conf and change DirectoryRoot to /home/admin/public_html/...

I've tried this, but it doesn't seem to work when I go to my domain.
-ToXiC-
you have to change this as well..




to



and restart apache.
blakex
QUOTE
Originally posted by -ToXiC-
and restart apache.
I changed the second reference, but didn't restart - thanks for the reply - as you can tell, I'm quite new to this... icon_smile.gif
-ToXiC-
yw icon_smile.gif
blakex
I'm still having some problems. Before I restarted, I would get the "success" message from Apache, but now, after changing both references to /home/admin/public_html, all I get is a directory listing which still appears to be the apache directory as it has different index.html files.

It wouldn't be a huge problem if I could just upload a couple files into the apache directory, but my FTP program is retarded and even though I can connect securely, I can't upload and I am unsure if I can upload via SSH.
blakex
Just wondering if anyone could help me out here qucikly icon_smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.