I want to change the default documentroot and server root (within httpd.conf) I put /home instead of /srv/www I restarted my apache rcapache restart but i cannot see (through my web browser) the new documentsd root (namely /home ) Is it known bug? PS. my httpd.con resides on /etc/httpd/httpd.conf ------------------------------------------------------------- http://www.mail.gr/ - Get Your Private Free Email Address! http://www.ringtone.gr/ - Ringtones & Logos for your mobile!
On Friday 10 October 2003 17:46 pm, pseep@mail.gr wrote:
I want to change the default documentroot and server root (within httpd.conf)
I put /home instead of /srv/www
I restarted my apache rcapache restart but i cannot see (through my web browser) the new documentsd root (namely /home )
Is it known bug?
PS. my httpd.con resides on /etc/httpd/httpd.conf
What ip address are you giving apache from your browser? You may have to set up a virtual host and set its DocumentRoot to /home. That's what I have. -- +----------------------------------------------------------------------------+ + Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 10/10/03 13:17 + +----------------------------------------------------------------------------+ "Whoever tells the truth is chased out of nine villages." - Turkish proverb
Quoting Bruce Marshall
On Friday 10 October 2003 17:46 pm, pseep@mail.gr wrote:
I want to change the default documentroot and server root (within httpd.conf)
I put /home instead of /srv/www
I restarted my apache rcapache restart but i cannot see (through my web browser) the new documentsd root (namely /home )
Is it known bug?
PS. my httpd.con resides on /etc/httpd/httpd.conf
What ip address are you giving apache from your browser?
You may have to set up a virtual host and set its DocumentRoot to /home. That's what I have.
How about directory permission for home. Did you check that out? 755 henry -------------------------------------------------------------------- This message was sent using Yu Creation Webmail powered by Horde IMP
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 10 October 2003 16:46, pseep@mail.gr wrote:
I want to change the default documentroot and server root (within httpd.conf)
I put /home instead of /srv/www
I restarted my apache rcapache restart but i cannot see (through my web browser) the new documentsd root (namely /home )
Is it known bug?
PS. my httpd.con resides on /etc/httpd/httpd.conf
------------------------------------------------------------- http://www.mail.gr/ - Get Your Private Free Email Address! http://www.ringtone.gr/ - Ringtones & Logos for your mobile!
Use the following in your http.conf: NameVirtualHost IP_ADDY # #<VirtualHost IP_ADDY> # ServerAdmin webmaster@SERVER.DOMAIN.COM # DocumentRoot /home # ServerName SERVER.DOMAIN.COM # ErrorLog logs/SERVER.DOMAIN.COM-error_log # CustomLog logs/SERVER.DOMAIN.COM-access_log common #</VirtualHost> Change the CAPITALIZED variables; and place in the configuration. Then reload. Any questions, go here: http://httpd.apache.org/docs-2.0/vhosts/ - -- Thomas Jones Linux-Howtos Network Administrator OpenGPG Key: 0x6A3DF6E9 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQE/h5pUQT2komo99ukRAp3lAJ9fcWhoQK9ijho8HiocnqgHbVXaqQCg3enr v/r2fBC5jnoS9PYd7ycuNto= =Orjj -----END PGP SIGNATURE-----
participants (4)
-
Bruce Marshall
-
Henry Tang
-
pseep@mail.gr
-
Thomas Jones