Re: Redirect Monit port to Apache2

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

 



On 23/06/2010 5:59 PM, Josu Lazkano wrote:
Hello, I have a Debian Lenny server with Apache2 and Monit installed,
both works great, Apache on port 80 and Monit on port 2812. I want to
add the Monit web interface to my server on http://host/monit
directory.

By default Monit comes on http://host:2812, and I want to change it to 80 port.

Where I must config it? /etc/apache2/apache2.conf?
/etc/apache2/sites-available/?

My server LAN IP is 192.168.1.1, I need to connect from outside from a DNS name.

I configure this way:

1. Create the monit site:

# cat /etc/apache2/sites-available/monit
<VirtualHost *:80>
ProxyPass /monit/ http://192.168.1.1:2812/
ProxyPassReverse /monit/ http://192.168.1.1:2812/
<Location /monit/>
        Order deny,allow
        Allow from all
</Location>
</VirtualHost>

2. Symlink to enable sites:

ln -s /etc/apache2/sites-available/monit /etc/apache2/sites-enabled/000-monit

3. Restart apache2:

/etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting .

But when I try to enter from remote, I have this error:

"Not Found

The requested URL /monit was not found on this server."

Can you help with this? I am on the correct way?

Thanks for all and best regards.


Josu,

Request /monit/ instead.

Frank.

---------------------------------------------------------------------
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