Configuración Página WEB FiveSoft

  1. mkdir repos

  2. cd repos/

  3. hg clone http://william@hg.fivesoftcolombia.com/Page/pageFive

  4. sudo ln -s /home/william/repos/pageFive/ /var/www/html/page

  5. ls -l /var/www/html/

  6. cd /etc/nginx/

  7. vim nginx.conf

  8. server {

            listen 80;

            server_name www.fivesoftcolombia.com;

            location / {

                    proxy_pass http://xxx.xxx.xxx.xxx;

                    proxy_set_header X-Forwarded-Host $server_name;

                    proxy_set_header X-Real-IP $remote_addr;

                    add_header P3P ‘CP=”ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV”‘;

            }

          }

  9. nginx -t

  10. /etc/init.d/nginx reload

  11. Crear Virtual Host apache

    /etc/apache2/sites-available

  12. Activar el Virtual host

    a2ensite <nombrevirtualhot>.conf

  13. a2dissite

  14. /etc/init.d/apache2 restart