[omd-users] what is the document root in omd?
Krause, Markus
krause at biochem.mpg.de
Tue Jul 3 14:53:16 CEST 2012
Am 03.07.2012 um 12:13 schrieb Joerg Linge:
>
> Am 03.07.2012 um 11:21 schrieb Klein, Oliver (extern):
>
>> Hi,
>>
>> that is also my question, where i have to put a RewriteRule so that the URL looks like that
>>
>>
>> http://mymachine/
>>
>> instead of
>>
>> http://mymachine/mysite/omd
>
> This is IMHO not possible with OMD
>
> OMD is designed to have more then one Site per Monitoring Host
nevertheless it is possible to use redirection (not to mix up with rewrite of course!):
if one just enters http://mymachine to get this redirected automatically to http://mymachine/mysite/omd, e.g. put the following line in a file /etc/apache2/conf.d/omd_redirect.conf (for a SLES host):
RedirectMatch ^/$ /mysite/omd
thus one can keep the initial url in a frame short.
maybe something like the following would also do the work without breaking other sites:
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/$
RewriteRule (.*) http://%{HTTP_HOST}/mysite/omd$1
HTH,
Markus
>
> Joerg
> _______________________________________________
> omd-users mailing list
> omd-users at lists.mathias-kettner.de
> http://lists.mathias-kettner.de/mailman/listinfo/omd-users
>
-- .- .-. -.- ..- ... / -.- .-. .- ..- ... .
Markus Krause
Max Planck Institute of Biochemistry
- Computing Center (networking, Mac OS X)
Am Klopferspitz 18
D-82152 Martinsried, Germany
Phone: +49(89)8578-2825
Fax: +49(89)8578-3179
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mathias-kettner.de/pipermail/omd-users/attachments/20120703/f443b42a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4499 bytes
Desc: not available
URL: <http://lists.mathias-kettner.de/pipermail/omd-users/attachments/20120703/f443b42a/attachment.bin>
More information about the omd-users
mailing list