Redirection from DocumentRoot
--0015174015c05c47c4047ce04d2b
Content-Type: text/plain; charset=UTF-8
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
--0015174015c05c47c4047ce04d2b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Hello *,<br><br>sorry for bother you with this (may be simple) question but=
I have following problem.<br>Let's say that my document root is situat=
ed to the /usr/apache/htdocs/<br><br>Is it possible to configure apache so =
that after accessing to the DocumentRoot page there<br>
will be done automatic redirection to the /opt/apache/htdocs/testInstall so=
that in URL will be seen<br>e.g. http://<ipadress/testInstall/?<br><br>=
thank you in advance<br><br>best regards<br>Petr<br><br><br>
--0015174015c05c47c4047ce04d2b--
Re: Redirection from DocumentRoot
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Re: Redirection from DocumentRoot
--001636c5a86f212231047cf305aa
Content-Type: text/plain; charset=UTF-8
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 <lists [at] 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-unsubscribe [at] httpd.apache.org
> " from the digest: users-digest-unsubscribe [at] httpd.apache.org
> For additional commands, e-mail: users-help [at] httpd.apache.org
>
>
--001636c5a86f212231047cf305aa
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
I have tried your proposal but it returns during the restarting of apache2.=
2:<br>Redirect to non-URL.<br><br>Unfortunatelly I do not know the name of =
the server, respectively URL is always based on the IP address on the machi=
ne. E.g. http://<IP_address>/....<br>
<br><div class=3D"gmail_quote">2010/1/11 Nilesh Govindarajan <span dir=3D"l=
tr"><<a href=3D"mailto:lists [at] itech7.com">lists [at] itech7.com</a>></span>=
<br><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(2=
04, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class=3D"h5">On 01/11/2010 03:08 PM, Petr Hracek wrote=
:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello *,<br>
<br>
sorry for bother you with this (may be simple) question but I have<br>
following problem.<br>
Let's say that my document root is situated to the /usr/apache/htdocs/<=
br>
<br>
Is it possible to configure apache so that after accessing to the<br>
DocumentRoot page there<br>
will be done automatic redirection to the /opt/apache/htdocs/testInstall<br=
>
so that in URL will be seen<br>
e.g. http://<ipadress/testInstall/?<br>
<br>
thank you in advance<br>
<br>
best regards<br>
Petr<br>
<br>
<br>
</blockquote>
<br></div></div>
You can have a host (or vhost) with only 1 docroot. You can create a symlin=
k to /opt/apache/htdocs/testInstall in /usr/apache/htdocs -<br>
<br>
ln -svt /usr/apache/htdocs /opt/apache/htdocs/testInstall<br>
<br>
Then configure apache like this -<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0<Directory /usr/apache/htdocs><br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Options +FollowSymL=
inks<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0</Directory><br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0RedirectPermanent / /testInstall<br>
<br>
-- <br>
Nilesh Govindarajan<br>
Site & Server Adminstrator<br>
<a href=3D"http://www.itech7.com" target=3D"_blank">www.itech7.com</a><br>
<br>
------------------------------------------------------------ ---------<br>
The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL:<a href=3D"http://httpd.apache.org/userslist.html" target=3D"_b=
lank">http://httpd.apache.org/userslist.html</a>> for more info.<br>
To unsubscribe, e-mail: <a href=3D"mailto:users-unsubscribe [at] httpd.apache.or=
g" target=3D"_blank">users-unsubscribe [at] httpd.apache.org</a><br>
=C2=A0" =C2=A0 from the digest: <a href=3D"mailto:users-digest-unsubs=
cribe [at] httpd.apache.org" target=3D"_blank">users-digest-unsubscribe [at] httpd.ap=
ache.org</a><br>
For additional commands, e-mail: <a href=3D"mailto:users-help [at] httpd.apache.=
org" target=3D"_blank">users-help [at] httpd.apache.org</a><br>
<br>
</blockquote></div><br>
--001636c5a86f212231047cf305aa--
Re: Redirection from DocumentRoot
You can also you use
Alias /testinstall /opt/apache/htdocs/testinstall
On Mon, Jan 11, 2010 at 8:38 PM, Petr Hracek <phracek2 [at] gmail.com> 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
>
>
>
--
Follow me on Twitter, http://twitter.com/mdevraj
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)
------------------------------------------------------------ ---------
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Re: Redirection from DocumentRoot
--00504502c715fb4f1f047cf3cc28
Content-Type: text/plain; charset=UTF-8
Unfortunatelly I do not have any idea how to use Alias for redirecting page
so the URL in web browser will be changed as well.
Could you please send me a short example?
best regards
Petr
2010/1/12 Devraj Mukherjee <devraj [at] gmail.com>
> You can also you use
>
> Alias /testinstall /opt/apache/htdocs/testinstall
>
>
> On Mon, Jan 11, 2010 at 8:38 PM, Petr Hracek <phracek2 [at] gmail.com> 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
> >
> >
> >
>
>
>
> --
> Follow me on Twitter, http://twitter.com/mdevraj
>
> "The secret impresses no-one, the trick you use it for is everything"
> - Alfred Borden (The Prestiege)
>
> ------------------------------------------------------------ ---------
> 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 [at] httpd.apache.org
> " from the digest: users-digest-unsubscribe [at] httpd.apache.org
> For additional commands, e-mail: users-help [at] httpd.apache.org
>
>
--00504502c715fb4f1f047cf3cc28
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Unfortunatelly I do not have any idea how to use Alias for redirecting page=
so the URL in web browser will be changed as well.<br><br>Could you please=
send me a short example?<br><br>best regards<br>Petr<br><br><div class=3D"=
gmail_quote">
2010/1/12 Devraj Mukherjee <span dir=3D"ltr"><<a href=3D"mailto:devraj [at] g=
mail.com">devraj [at] gmail.com</a>></span><br><blockquote class=3D"gmail_quo=
te" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt=
0.8ex; padding-left: 1ex;">
You can also you use<br>
<br>
Alias /testinstall /opt/apache/htdocs/testinstall<br>
<div><div></div><div class=3D"h5"><br>
<br>
On Mon, Jan 11, 2010 at 8:38 PM, Petr Hracek <<a href=3D"mailto:phracek2=
[at] gmail.com">phracek2 [at] gmail.com</a>> wrote:<br>
> Hello *,<br>
><br>
> sorry for bother you with this (may be simple) question but I have fol=
lowing<br>
> problem.<br>
> Let's say that my document root is situated to the /usr/apache/htd=
ocs/<br>
><br>
> Is it possible to configure apache so that after accessing to the<br>
> DocumentRoot page there<br>
> will be done automatic redirection to the /opt/apache/htdocs/testInsta=
ll so<br>
> that in URL will be seen<br>
> e.g. http://<ipadress/testInstall/?<br>
><br>
> thank you in advance<br>
><br>
> best regards<br>
> Petr<br>
><br>
><br>
><br>
<br>
<br>
<br>
</div></div><font color=3D"#888888">--<br>
Follow me on Twitter, <a href=3D"http://twitter.com/mdevraj" target=3D"_bla=
nk">http://twitter.com/mdevraj</a><br>
<br>
"The secret impresses no-one, the trick you use it for is everything&q=
uot;<br>
- Alfred Borden (The Prestiege)<br>
</font><div><div></div><div class=3D"h5"><br>
------------------------------------------------------------ ---------<br>
The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL:<a href=3D"http://httpd.apache.org/userslist.html" target=3D"_b=
lank">http://httpd.apache.org/userslist.html</a>> for more info.<br>
To unsubscribe, e-mail: <a href=3D"mailto:users-unsubscribe [at] httpd.apache.or=
g">users-unsubscribe [at] httpd.apache.org</a><br>
=C2=A0 " =C2=A0 from the digest: <a href=3D"mailto:users-digest-unsub=
scribe [at] httpd.apache.org">users-digest-unsubscribe [at] httpd.apac he.org</a><br>
For additional commands, e-mail: <a href=3D"mailto:users-help [at] httpd.apache.=
org">users-help [at] httpd.apache.org</a><br>
<br>
</div></div></blockquote></div><br>
--00504502c715fb4f1f047cf3cc28--
Re: Redirection from DocumentRoot
On 01/12/2010 01:45 PM, Devraj Mukherjee wrote:
> You can also you use
>
> Alias /testinstall /opt/apache/htdocs/testinstall
>
>
> On Mon, Jan 11, 2010 at 8:38 PM, Petr Hracek<phracek2 [at] gmail.com> 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
>>
>>
>>
>
>
>
But that wouldn't redirect. He wants to display a different URL in the
addressbar.
--
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org