|
|
|
@ -68,17 +68,17 @@ sudo systemctl status apache2
|
|
|
|
a2enmod proxy
|
|
|
|
a2enmod proxy
|
|
|
|
a2enmod proxy_http
|
|
|
|
a2enmod proxy_http
|
|
|
|
sudo touch /etc/apache2/sites-available/codefish.com.eg.conf
|
|
|
|
sudo touch /etc/apache2/sites-available/codefish.com.eg.conf
|
|
|
|
sudo su root -c "printf'<VirtualHost *:80>' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf'<VirtualHost *:80>\n' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' ServerName codefish.com.eg' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' ServerName codefish.com.eg\n' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' ServerAlias *.codefish.com.eg' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' ServerAlias *.codefish.com.eg\n' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf'' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf'\n' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' ProxyRequests Off' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' ProxyRequests Off\n' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' <Proxy *>' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' <Proxy *>\n' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' Order deny,allow' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' Order deny,allow\n' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' Allow from all' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' Allow from all\n' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' </Proxy>' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' </Proxy>\n' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf'' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf'\n' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' ProxyPass / http://localhost:8069/' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' ProxyPass / http://localhost:8069/\n' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' ProxyPassReverse / http://localhost:8069/' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' ProxyPassReverse / http://localhost:8069/' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' ProxyPass /longpolling/ http://localhost:8072/' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' ProxyPass /longpolling/ http://localhost:8072/' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' ProxyPassReverse /longpolling/ http://localhost:8072/' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' ProxyPassReverse /longpolling/ http://localhost:8072/' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
@ -88,6 +88,7 @@ sudo su root -c "printf' Order allow,deny' >> /etc/apache2/sites-
|
|
|
|
sudo su root -c "printf' Allow from all] >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' Allow from all] >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' </Location>' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf' </Location>' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf'</VirtualHost>' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
sudo su root -c "printf'</VirtualHost>' >> /etc/apache2/sites-available/codefish.com.eg.conf"
|
|
|
|
|
|
|
|
sudo chmod 640 /etc/apache2/sites-available/codefish.com.eg.conf
|
|
|
|
|
|
|
|
|
|
|
|
ln -s /etc/apache2/sites-available/codefish.com.eg.conf /etc/apache2/sites-enabled/codefish.com.eg.conf
|
|
|
|
ln -s /etc/apache2/sites-available/codefish.com.eg.conf /etc/apache2/sites-enabled/codefish.com.eg.conf
|
|
|
|
service apache2 restart
|
|
|
|
service apache2 restart
|
|
|
|
|