Re: Redirection from DocumentRoot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/11/2010 03:08 PM, Petr Hracek wrote:
Hello *,

sorry for bother you with this (may be simple) question but I have
following problem.
Let's say that my document root is situated to the /usr/apache/htdocs/

Is it possible to configure apache so that after accessing to the
DocumentRoot page there
will be done automatic redirection to the /opt/apache/htdocs/testInstall
so that in URL will be seen
e.g. http://<ipadress/testInstall/?

thank you in advance

best regards
Petr



You can have a host (or vhost) with only 1 docroot. You can create a symlink to /opt/apache/htdocs/testInstall in /usr/apache/htdocs -

ln -svt /usr/apache/htdocs /opt/apache/htdocs/testInstall

Then configure apache like this -

	<Directory /usr/apache/htdocs>
		
		Options +FollowSymLinks
	
	</Directory>

	RedirectPermanent / /testInstall

--
Nilesh Govindarajan
Site & Server Adminstrator
www.itech7.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux