I have tried your proposal but it returns during the restarting of
apache2.2:
Redirect to non-URL.

Unfortunatelly I do not know the name of the server, respectively URL is
always based on the IP address on the machine. E.g. http://<IP_address>/....

2010/1/11 Nilesh Govindarajan <li...@itech7.com>

> 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-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

Reply via email to