Hi,
I need to setup one website proxy for my mail server.
I'm do this:
Quote: mkdir /var/www/pocztaMAIN
mkdir /var/www/pocztaMAIN/cgi-bin /var/www/pocztaMAIN/htdocs
Quote: chown -R www-data.www-data /var/www/pocztaMAIN
Quote:
vim /etc/apache2/sites-available/pocztaMAIN2.conf
Quote:#
# Proxowanie glownego serwera poczty
#
<VirtualHost 127.0.0.1:80>
ServerAdmin admin@xxx
DocumentRoot /var/www/pocztaMAIN/htdocs
ServerName webmail.domain.com
ErrorLog /var/log/apache2/webmail.domain.com-error.log
CustomLog /var/log/apache2/webmail.domain.com-access.log combined
<Directory /var/www/pocztaMAIN>
Options FollowSymLinks
DirectoryIndex index.html index.htm index.php index.php4 index.php5
AllowOverride All
Allow From All
</Directory>
ProxyPass / https://192.168.0.60/
ProxyPassReverse / https://192.168.0.60/
<Proxy *>
allow from all
</Proxy>
</VirtualHost>
next
Quote: a2ensite pocztaMAIN2.conf
Quote: /etc/init.d/apache2 reload
And then, when i want to try load this website, i'm getting 403 forbidden...
Apache try to load this real site /var/www/pocztaMAIN/htdocs.
But i don't want this.
I want to load a website
https://192.168.0.60/
Please help me.
I'm try to migrate from Virtualmin.
( on virtualmin i have this code )
Code:
SuexecUserGroup "#515" "#513"
ServerName webmail.domain.com
ServerAlias webmail.domain.com
DocumentRoot /home/poczta/public_html
ErrorLog /home/poczta/logs/error_log
CustomLog /home/poczta/logs/access_log combined
ScriptAlias /cgi-bin/ /home/poczta/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/poczta/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>a
<Directory /home/poczta/cgi-bin>
allow from all
</Directory>
ProxyPass / https://192.168.0.60/
ProxyPassReverse / https://192.168.0.60/
SSLProxyEngine on
<Proxy *>
allow from all
</Proxy>