Apache2 is installed under /etc/apache2
sudo apt-get install apache2
/etc/init.d/apache2 stop
sudo a2ensite mynewsite
sudo /etc/init.d/apache2 restart
a2dissite utility to disable sites
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod proxy_ajp
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
UseCanonicalName On
ServerAdmin harshal.shah1982@gmail.com
Alias /healthcheck /var/www
DocumentRoot /home/localadmin/liferay
<Directory "/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
ProxyPass ajp://localhost:8009/
</Directory>
CustomLog /liferay.log combined
Options +FollowSymlinks
</VirtualHost>
sudo a2ensite mynewsite
sudo /etc/init.d/apache2 restart
a2dissite utility to disable sites
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod proxy_ajp
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
UseCanonicalName On
ServerAdmin harshal.shah1982@gmail.com
Alias /healthcheck /var/www
DocumentRoot /home/localadmin/liferay
<Directory "/">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
ProxyPass ajp://localhost:8009/
</Directory>
CustomLog /liferay.log combined
Options +FollowSymlinks
</VirtualHost>
Check if proxy is loades in mods-enabled
and in proxy.conf change
<Proxy *>
AddDefaultCharset off
Order deny,allow
Deny from none
#Allow from .example.com
</Proxy>
<Proxy *>
AddDefaultCharset off
Order deny,allow
Deny from none
#Allow from .example.com
</Proxy>
No comments:
Post a Comment