Deano
Deano

Reputation: 12200

Redirecting to a Directory in Apache

I'm stuck here, I'm using apache on ubuntu and I'm rusty with rewrite rules, I wonder if someone can help me with this.

I'm trying to redirect users to directory upon typing url

monitor.mydomain.com --> monitor.mydomain.com/zabbix

Thank you

Upvotes: 1

Views: 1338

Answers (1)

mattias
mattias

Reputation: 2108

I think this question should be asked over at askubuntu or at serverfault but here goes..

Apache Docs: Redirecting and Remapping covers remapping pretty well, an easy example using for example VirtualHost to solve your problem follows:

Put the following in your httpd.conf

<VirtualHost *>
DocumentRoot /path/to/zabbix
ServerName monitor.mydomain.com
</VirtualHost>

And then restart the apache web server

$ apachectl restart

Upvotes: 3

Related Questions