old_contents:
WSGIDaemonProcess osmaxx.dev python-path=/var/www/eda/environment/:/var/www/eda/environment/lib/python3.4/site-packages
WSGIProcessGroup osmaxx.dev

ErrorLog /var/log/apache2/osmaxx.log
WSGIScriptAlias / /var/www/eda/projects/osmaxx/wsgi.py

Alias "/static/admin" "/var/www/eda/environment/lib/python3.4/site-packages/django/contrib/admin/static/admin"
Alias "/static/excerptexport" "/var/www/eda/projects/excerptexport/static/excerptexport"

<Directory /var/www/eda/projects>
    <Files osmaxx/wsgi.py>
        Require all granted
    </Files>
</Directory>

subject: add newline at end of file

message: add newline at end of file

license: mit


new_contents:
server {
  server_name mobile.viewspeaker.com mobile.viewspeaker.cat;
  root        /var/www/xtc;
  index       index.php;

  client_max_body_size 100M;
  fastcgi_read_timeout 1800;

  location / {
    try_files $uri $uri/ /admin/index.php;
  }

  location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires       max;
    log_not_found off;
    access_log    off;
  }

  location ~ \.php$ {
    try_files     $uri =404;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    include       fastcgi_params;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass  unix:/var/run/php5-fpm.sock;
  }
}

server {
  server_name mobile.api.viewspeaker.com mobile.api.viewspeaker.cat;
  root        /var/www/xtc;
  index       index.php;

  client_max_body_size 100M;
  fastcgi_read_timeout 1800;

  location / {
    try_files $uri $uri/ /index.php;
  }

  location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires       max;
    log_not_found off;
    access_log    off;
  }

  location ~ \.php$ {
    try_files     $uri =404;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    include       fastcgi_params;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
    fastcgi_pass  unix:/var/run/php5-fpm.sock;
  }
}

server {
  server_name viewspeaker.com www.viewspeaker.com;
  root        /var/www/vs;
  index       index.html;

  client_max_body_size 100M;
  fastcgi_read_timeout 1800;

  location / {
    try_files $uri $uri/ /index.html;
  }

  location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires       max;
    log_not_found off;
    access_log    off;
  }

  location ~ \.php$ {
    try_files     $uri =404;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    include       fastcgi_params;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
    fastcgi_pass  unix:/var/run/php5-fpm.sock;
  }
}

subject: update vs site

message: update vs site


old_contents:
server {
  server_name default;
  root        /var/www/public;
  index       main.php;

  client_max_body_size 100M;
  fastcgi_read_timeout 1800;

  location / {
    try_files $uri $uri/ /index.php$is_args$args;
  }

  location /status {
     access_log off;
     allow 172.17.0.0/16;
     deny all;
     include /etc/nginx/fastcgi_params;
     fastcgi_param SCRIPT_FILENAME /status;
     fastcgi_pass unix:/var/run/php5-fpm.sock;
  }

  location /ping {
     access_log off;
     allow all;
     include fastcgi_params;
     fastcgi_param SCRIPT_FILENAME /ping;
     fastcgi_pass unix:/Var/run/php5-fpm.sock;
  }

  location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires       max;
    log_not_found off;
    access_log    off;
  }

  location ~ \.php$ {
    try_files     $uri =404;
    include       fastcgi_params;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass  unix:/var/run/php5-fpm.sock;
  }
}

new_contents:
server {
  server_name default;
  root        /var/www/public;
  index       main.php;

  client_max_body_size 100M;
  fastcgi_read_timeout 1800;

  location / {
    try_files $uri $uri.html $uri/ @extensionless-php;
  }

  location @extensionless-php {
    rewrite ^(.*)$ $1.php last;
  }

  location /status {
     access_log off;
     allow 172.17.0.0/16;
     deny all;
     include /etc/nginx/fastcgi_params;
     fastcgi_param SCRIPT_FILENAME /status;
     fastcgi_pass unix:/var/run/php5-fpm.sock;
  }

  location /ping {
     access_log off;
     allow all;
     include fastcgi_params;
     fastcgi_param SCRIPT_FILENAME /ping;
     fastcgi_pass unix:/Var/run/php5-fpm.sock;
  }

  location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires       max;
    log_not_found off;
    access_log    off;
  }

  location ~ \.php$ {
    try_files     $uri =404;
    include       fastcgi_params;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass  unix:/var/run/php5-fpm.sock;
  }
}

subject: Remove .php extensions from url

message: Remove .php extensions from url


old_contents:
server {
  server_name default;
  root        /var/www/web;
  index       index.php;

  client_max_body_size 16M;
  fastcgi_read_timeout 60;

  location / {
    try_files $uri /index.php$is_args$args;
  }

  location ~ ^/(index|index_dev)\.php(/|$) {
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_split_path_info ^(.+\.php)(/.*)$;
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param HTTPS off;
  }

  location ~ \.php$ {
    return 404;
  }

  location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires       max;
    log_not_found off;
    access_log    off;
  }
}

new_contents:
server {
  server_name default;
  root        /var/www/web;
  index       index.php;

  client_max_body_size 16M;
  fastcgi_read_timeout 60;

  location / {
    try_files $uri /index.php$is_args$args;
  }

  location ~ ^/(index|index_dev)\.php(/|$) {
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_split_path_info ^(.+\.php)(/.*)$;
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param HTTPS off;
  }

  location ~ \.php$ {
    return 404;
  }

  location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires       off;
    log_not_found off;
    access_log    off;
  }
}

subject: Set default vhost expires off for assets


old_contents:
#
# This file is part of the Berny\Project-Manager package
#
# (c) Berny Cantos <be@rny.cc>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#

<VirtualHost *:80>
    ServerName localhost.devel
    ServerAlias *.devel

    DocumentRoot /var/www/public
    VirtualDocumentRoot /var/www/public/%-2+
    php_admin_value auto_prepend_file /var/www/boot/docroot.php

    # combined log for all virtual hosts
    # can be split per-vhost based on the first field
    LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
    CustomLog  /var/www/log/access.log vcommon
    ErrorLog   /var/www/log/errors.log

    UseCanonicalName Off
    AcceptPathInfo On

    <IfModule mod_rewrite.c>
        RewriteLog /var/www/log/rewrite.log
        RewriteLogLevel 1
    </IfModule>
</VirtualHost>

new_contents:
#
# This file is part of the Berny\Project-Manager package
#
# (c) Berny Cantos <be@rny.cc>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#

<VirtualHost *:80>
    ServerName localhost.devel
    ServerAlias *.devel

    DocumentRoot /var/www/public
    VirtualDocumentRoot /var/www/public/%-1+
    php_admin_value auto_prepend_file /var/www/boot/docroot.php
    UseCanonicalName Off
    AcceptPathInfo On

    # combined log for all virtual hosts
    # can be split per-vhost based on the first field
    LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
    CustomLog  /var/www/log/access.log vcommon
    ErrorLog   /var/www/log/errors.log

    <IfModule mod_rewrite.c>
        RewriteLog /var/www/log/rewrite.log
        RewriteLogLevel 1
    </IfModule>
</VirtualHost>

subject: fix virtual root

message: fix virtual root

repos: xphere/project-manager


old_contents:
WSGIPythonPath /path/to/repo/FuzzManager/server
<VirtualHost *:80>
	ServerName fuzzmanager.your.domain

	Alias /static/ /path/to/repo/FuzzManager/server/crashmanager/static/
	Alias /tests/ /path/to/repo/FuzzManager/server/tests/

	WSGIScriptAlias / /path/to/repo/FuzzManager/server/server/wsgi.py
	WSGIPassAuthorization On

	<Location />
		AuthType Basic
		AuthName "LDAP Login"
		AuthBasicProvider file ldap
		AuthUserFile /path/to/.htpasswd
		# Your LDAP configuration here, including Require directives

		# This user is used by clients to download test cases and signatures
		Require user fuzzmanager
	</Location>

	<Location /crashmanager/rest/>
		Satisfy Any
		Allow from all
	</Location>

	<Directory /path/to/repo/FuzzManager/server>
		<Files wsgi.py>
			Order deny,allow
			Allow from all
		</Files>
	</Directory>
</VirtualHost>

new_contents:
WSGIDaemonProcess fuzzmanager.your.domain python-path=/path/to/repo/FuzzManager/server
WSGIProcessGroup fuzzmanager.your.domain
WSGIApplicationGroup %{GLOBAL}

<VirtualHost *:80>
	ServerName fuzzmanager.your.domain

	Alias /static/ /path/to/repo/FuzzManager/server/crashmanager/static/
	Alias /tests/ /path/to/repo/FuzzManager/server/tests/

	WSGIScriptAlias / /path/to/repo/FuzzManager/server/server/wsgi.py process-group=fuzzmanager.your.domain
	WSGIPassAuthorization On

	<Location />
		AuthType Basic
		AuthName "LDAP Login"
		AuthBasicProvider file ldap
		AuthUserFile /path/to/.htpasswd
		# Your LDAP configuration here, including Require directives

		# This user is used by clients to download test cases and signatures
		Require user fuzzmanager
	</Location>

	<Location /crashmanager/rest/>
		Satisfy Any
		Allow from all
	</Location>

	<Location /ec2spotmanager/rest/>
		Satisfy Any
		Allow from all
	</Location>

	<Directory /path/to/repo/FuzzManager/server>
		<Files wsgi.py>
			Order deny,allow
			Allow from all
		</Files>
	</Directory>
</VirtualHost>

subject: Update example vhost file for Apache2

message: Update example vhost file for Apache2


old_contents:
server {
        listen   80;

        root /var/www/app;
        index index.html;

        server_name ~^particulier(-dev|-test|-local|)\.api\.gouv\.fr$ default;

        location /docs {
          root /var/www;
          add_header 'Access-Control-Allow-Origin' '*';
        }

        location /status {
          root /var/www;
        }

        location /api {

          proxy_set_header X-Real-IP  $remote_addr;
          proxy_set_header X-Forwarded-For $remote_addr;
          proxy_set_header Host $host;
          proxy_pass http://app:3004;

        }

        location /tech {
          root /var/www;
        }

}

new_contents:
server {
        listen 80 default_server;

        root /var/www/app;
        index index.html;

        server_name ~^particulier(-dev|-test|-local|)\.api\.gouv\.fr$ default;

        location /docs {
          root /var/www;
          add_header 'Access-Control-Allow-Origin' '*';
        }

        location /status {
          root /var/www;
        }

        location /api {

          proxy_set_header X-Real-IP  $remote_addr;
          proxy_set_header X-Forwarded-For $remote_addr;
          proxy_set_header Host $host;
          proxy_pass http://app:3004;

        }

        location /tech {
          root /var/www;
        }

}

subject: set the app as the default server

message: set the app as the default server


old_contents:
WSGIDaemonProcess osmaxx.dev python-path=/var/www/eda/environment/:/var/www/eda/environment/lib/python3.4/site-packages
WSGIProcessGroup osmaxx.dev

ErrorLog /var/log/apache2/osmaxx.log
WSGIScriptAlias / /var/www/eda/projects/osmaxx/wsgi.py

Alias "/static/admin" "/var/www/eda/environment/lib/python3.4/site-packages/django/contrib/admin/static/admin"
Alias /resources/ /var/www/eda/projects/resources/public/

<Directory /var/www/eda/projects>
    <Files osmaxx/wsgi.py>
        Require all granted
    </Files>
</Directory>

new_contents:
WSGIDaemonProcess osmaxx.dev python-path=/var/www/eda/environment/:/var/www/eda/environment/lib/python3.4/site-packages
WSGIProcessGroup osmaxx.dev

ErrorLog /var/log/apache2/osmaxx.log
WSGIScriptAlias / /var/www/eda/projects/osmaxx/wsgi.py

Alias "/static/admin" "/var/www/eda/environment/lib/python3.4/site-packages/django/contrib/admin/static/admin"
Alias "/static/excerptexport" "/var/www/eda/projects/excerptexport/static/excerptexport"

<Directory /var/www/eda/projects>
    <Files osmaxx/wsgi.py>
        Require all granted
    </Files>
</Directory>

message: Bugfix: Fix alias for apache to server static files. Fixes #3

license: isc


old_contents:
server {
  server_name default;
  root        /var/www/public;
  index       main.php;

  client_max_body_size 100M;
  fastcgi_read_timeout 1800;

  location / {
    try_files $uri $uri.html $uri/ @extensionless-php;
  }

  location @extensionless-php {
    rewrite ^(.*)$ $1.php last;
  }

  location /status {
     access_log off;
     allow 172.17.0.0/16;
     deny all;
     include /etc/nginx/fastcgi_params;
     fastcgi_param SCRIPT_FILENAME /status;
     fastcgi_pass unix:/var/run/php5-fpm.sock;
  }

  location /ping {
     access_log off;
     allow all;
     include fastcgi_params;
     fastcgi_param SCRIPT_FILENAME /ping;
     fastcgi_pass unix:/Var/run/php5-fpm.sock;
  }

  location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires       max;
    log_not_found off;
    access_log    off;
  }

  location ~ \.php$ {
    try_files     $uri =404;
    include       fastcgi_params;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass  unix:/var/run/php5-fpm.sock;
  }
}

new_contents:
server {
  server_name keya;
  root        /var/www/public;
  index       main.php;

  client_max_body_size 100M;
  fastcgi_read_timeout 1800;

  location / {
    try_files $uri $uri.html $uri/ @extensionless-php;
  }

  location @extensionless-php {
    rewrite ^(.*)$ $1.php last;
  }

  location /status {
     access_log off;
     allow 172.17.0.0/16;
     deny all;
     include /etc/nginx/fastcgi_params;
     fastcgi_param SCRIPT_FILENAME /status;
     fastcgi_pass unix:/var/run/php5-fpm.sock;
  }

  location /ping {
     access_log off;
     allow all;
     include fastcgi_params;
     fastcgi_param SCRIPT_FILENAME /ping;
     fastcgi_pass unix:/Var/run/php5-fpm.sock;
  }

  location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires       max;
    log_not_found off;
    access_log    off;
  }

  location ~ \.php$ {
    try_files     $uri =404;
    include       fastcgi_params;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass  unix:/var/run/php5-fpm.sock;
  }
}

subject: Update default.vhost

message: Update default.vhost


old_contents:
server {
        listen   80;

        root /var/www/app;
        index index.html;

        server_name apiparticulier.sgmap.fr default;

        location /docs {
          root /var/www;
        }

        location /api {

          proxy_set_header X-Real-IP  $remote_addr;
          proxy_set_header X-Forwarded-For $remote_addr;
          proxy_set_header Host $host;
          proxy_pass http://app:3004;

        }

        location /tech {
          rewrite /tech(.*) /$1  break;
          proxy_set_header X-Real-IP  $remote_addr;
          proxy_set_header X-Forwarded-For $remote_addr;
          proxy_set_header Host $host;
          proxy_pass http://tech:4567;
        }

}

new_contents:
server {
        listen   80;

        root /var/www/app;
        index index.html;

        server_name ~^apiparticulier(-dev|-test|-local|)\.sgmap\.fr$ default;

        location /docs {
          root /var/www;
        }

        location /api {

          proxy_set_header X-Real-IP  $remote_addr;
          proxy_set_header X-Forwarded-For $remote_addr;
          proxy_set_header Host $host;
          proxy_pass http://app:3004;

        }

        location /tech {
          rewrite /tech(.*) /$1  break;
          proxy_set_header X-Real-IP  $remote_addr;
          proxy_set_header X-Forwarded-For $remote_addr;
          proxy_set_header Host $host;
          proxy_pass http://tech:4567;
        }

}

subject: add regex to tolerate all env

message: add regex to tolerate all env


old_contents:
server {
        listen   80;

        root /var/www/app;
        index index.html;

        server_name apiparticulier.sgmap.fr default;

        location /docs {
          root /var/www;
        }

        location /api {

            proxy_set_header X-Real-IP  $remote_addr;
            proxy_set_header X-Forwarded-For $remote_addr;
            proxy_set_header Host $host;
            proxy_pass http://app:3004;

         }

         location /tech {

             proxy_set_header X-Real-IP  $remote_addr;
             proxy_set_header X-Forwarded-For $remote_addr;
             proxy_set_header Host $host;
             proxy_pass http://tech:4567;

          }

}

new_contents:
server {
        listen   80;

        root /var/www/app;
        index index.html;

        server_name apiparticulier.sgmap.fr default;

        location /docs {
          root /var/www;
        }

        location /api {

          proxy_set_header X-Real-IP  $remote_addr;
          proxy_set_header X-Forwarded-For $remote_addr;
          proxy_set_header Host $host;
          proxy_pass http://app:3004;

        }

        location /tech {
          rewrite /tech(.*) /$1  break;
          proxy_set_header X-Real-IP  $remote_addr;
          proxy_set_header X-Forwarded-For $remote_addr;
          proxy_set_header Host $host;
          proxy_pass http://tech:4567;
        }

}

subject: add url rewritting for tech redirect

message: add url rewritting for tech redirect


old_contents:
server {
  server_name default;
  root        /var/www/web;
  index       index.php;

  client_max_body_size 16M;
  fastcgi_read_timeout 60;

  location @rewrite {
    rewrite ^/([^?]*)$ /index.php?/$1 last;
  }

  location / {
    try_files $uri $uri/ @rewrite;
  }

  location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires       max;
    log_not_found off;
    access_log    off;
  }

  location ~ \.php$ {
    try_files     $uri =404;
    include       fastcgi_params;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param PATH_INFO $fastcgi_script_name;
    fastcgi_param REQUEST_URI $request_uri;
    fastcgi_pass  unix:/var/run/php5-fpm.sock;
  }
}

new_contents:
server {
  server_name default;
  root        /var/www/web;
  index       index.php;

  client_max_body_size 16M;
  fastcgi_read_timeout 60;

  location / {
    try_files $uri /index.php$is_args$args;
  }

  location ~ ^/(index|index_dev)\.php(/|$) {
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_split_path_info ^(.+\.php)(/.*)$;
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param HTTPS off;
  }

  location ~ \.php$ {
    return 404;
  }

  location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires       max;
    log_not_found off;
    access_log    off;
  }
}

subject: Fix vhost

message: Fix vhost


old_contents:
server {
    listen <YOURIP>:443 ssl;
    server_name <YOURFQDN>;

    ssl_certificate         /etc/nginx/ssl/server.pem;
    ssl_certificate_key     /etc/nginx/ssl/server.pem;
    ssl_protocols           SSLv3 TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers             HIGH:!aNULL:!MD5;

    access_log /var/www/virtual/cpves/logs/nginx_access.log;
    error_log /var/www/virtual/cpves/logs/nginx_error.log;

    root /var/www/virtual/cpves/html/web;

    index index.php;

    location ~ ^(.*)\/\.(.*)$ {
        return 404;
    }

    location ~ ^(.*)\.php$ {
        try_files $uri =404;

        include       /etc/nginx/fastcgi_params;
        fastcgi_pass  unix:/var/www/virtual/cpves/sockets/phpfpm.socket;
    }
}

new_contents:
server {
    listen <YOURIP>:443 ssl;
    server_name <YOURFQDN>;

    ssl_certificate         /etc/nginx/ssl/cpves.pem;
    ssl_certificate_key     /etc/nginx/ssl/cpves.pem;
    ssl_protocols           SSLv3 TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers             HIGH:!aNULL:!MD5;

    access_log /var/www/virtual/cpves/logs/nginx_access.log;
    error_log /var/www/virtual/cpves/logs/nginx_error.log;

    root /var/www/virtual/cpves/html/web;

    index index.php;

    location ~ ^(.*)\/\.(.*)$ {
        return 404;
    }

    location ~ ^(.*)\.php$ {
        try_files $uri =404;

        include       /etc/nginx/fastcgi_params;
        fastcgi_pass  unix:/var/www/virtual/cpves/sockets/phpfpm.socket;
    }
}

subject: fix nginx vhost

message: fix nginx vhost


old_contents:
server {
  server_name mobile.viewspeaker.com;
  root        /var/www/xtc;
  index       index.php;

  client_max_body_size 100M;
  fastcgi_read_timeout 1800;

  location / {
    try_files $uri $uri/ /admin/index.php;
  }

  location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires       max;
    log_not_found off;
    access_log    off;
  }

  location ~ \.php$ {
    try_files     $uri =404;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    include       fastcgi_params;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass  unix:/var/run/php5-fpm.sock;
  }
}

server {
  server_name mobile.api.viewspeaker.com;
  root        /var/www/xtc;
  index       index.php;

  client_max_body_size 100M;
  fastcgi_read_timeout 1800;

  location / {
    try_files $uri $uri/ /index.php;
  }

  location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires       max;
    log_not_found off;
    access_log    off;
  }

  location ~ \.php$ {
    try_files     $uri =404;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    include       fastcgi_params;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
    fastcgi_pass  unix:/var/run/php5-fpm.sock;
  }
}

new_contents:
server {
  server_name mobile.viewspeaker.com mobile.viewspeaker.cat;
  root        /var/www/xtc;
  index       index.php;

  client_max_body_size 100M;
  fastcgi_read_timeout 1800;

  location / {
    try_files $uri $uri/ /admin/index.php;
  }

  location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires       max;
    log_not_found off;
    access_log    off;
  }

  location ~ \.php$ {
    try_files     $uri =404;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    include       fastcgi_params;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass  unix:/var/run/php5-fpm.sock;
  }
}

server {
  server_name mobile.api.viewspeaker.com mobile.api.viewspeaker.cat;
  root        /var/www/xtc;
  index       index.php;

  client_max_body_size 100M;
  fastcgi_read_timeout 1800;

  location / {
    try_files $uri $uri/ /index.php;
  }

  location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires       max;
    log_not_found off;
    access_log    off;
  }

  location ~ \.php$ {
    try_files     $uri =404;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    include       fastcgi_params;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
    fastcgi_pass  unix:/var/run/php5-fpm.sock;
  }
}

subject: update xtc web config

message: update xtc web config


old_contents:
server {
  server_name default;
  root        /var/www/default;
  index       index.php;

  client_max_body_size 100M;
  fastcgi_read_timeout 1800;

  location / {
    try_files $uri $uri/ /index.php;
  }

  location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires       max;
    log_not_found off;
    access_log    off;
  }

  location ~ \.php$ {
    try_files     $uri =404;
    include       fastcgi_params;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass  unix:/var/run/php5-fpm.sock;
    # fastcgi_pass  unix:/var/run/hhvm/hhvm.sock;
  }
}

new_contents:
server {
  server_name default;
  root        /var/www/default;
  index       index.php;

  client_max_body_size 100M;
  fastcgi_read_timeout 1800;

  location / {
    try_files $uri $uri/ /index.php$is_args$args;
  }

  location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires       max;
    log_not_found off;
    access_log    off;
  }

  location ~ \.php$ {
    try_files     $uri =404;
    include       fastcgi_params;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass  unix:/var/run/php5-fpm.sock;
    # fastcgi_pass  unix:/var/run/hhvm/hhvm.sock;
  }
}

subject: Enable GET parameters

message: Enable GET parameters


old_contents:
server {
	listen *:9000;

	root /var/www/html;
	server_name localhost;
	charset UTF-8;

		# Block Bad Bots
		include /etc/nginx/bots.d/blockbots.conf;
		include /etc/nginx/bots.d/ddos.conf;
}

new_contents:
server {
	listen *:9000;

	root /var/www/html;
	server_name localhost;
	charset UTF-8;

    location / {
      root /var/www/html/;
        }
}

subject: test with new default.vhost file

message: test with new default.vhost file


old_contents:
server {
        listen   80;

        root /var/www/app;
        index index.html;

        server_name ~^apiparticulier(-dev|-test|-local|)\.sgmap\.fr$ default;

        location /docs {
          root /var/www;
          add_header 'Access-Control-Allow-Origin' '*.gouv.fr';
        }

        location /status {
          root /var/www;
        }

        location /api {

          proxy_set_header X-Real-IP  $remote_addr;
          proxy_set_header X-Forwarded-For $remote_addr;
          proxy_set_header Host $host;
          proxy_pass http://app:3004;

        }

        location /tech {
          root /var/www;
        }

}

new_contents:
server {
        listen   80;

        root /var/www/app;
        index index.html;

        server_name ~^apiparticulier(-dev|-test|-local|)\.sgmap\.fr$ default;

        location /docs {
          root /var/www;
          add_header 'Access-Control-Allow-Origin' '*';
        }

        location /status {
          root /var/www;
        }

        location /api {

          proxy_set_header X-Real-IP  $remote_addr;
          proxy_set_header X-Forwarded-For $remote_addr;
          proxy_set_header Host $host;
          proxy_pass http://app:3004;

        }

        location /tech {
          root /var/www;
        }

}

subject: remove restriction on CORS

message: remove restriction on CORS


new_contents:
server {
	server_name push.example.fr;
        root /var/www/push.example.fr;
        access_log /var/log/nginx/push.example.fr.access.log;
        error_log /var/log/nginx/push.example.fr.error.log;

        index index.php;

	location / {

		try_files $uri $uri/ /index.php?$args;
        }

	location ~ "^/([\w\d]{4})$" {
		try_files $uri /pages/decoder.php?decode=$1;
	}

        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_intercept_errors on;
                fastcgi_pass unix:/var/run/php5-fpm.sock;
        }

        location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
                expires max;
                log_not_found off;
        }
}

subject: Add nginx configuration

message:
Add nginx configuration

Signed-off-by: Konosprod <220f1eb1aca902f59b8c2b389e151298848b6ae6@free.fr>


new_contents:
server {
    server_name [domain];
    root  [symfony-web-root]

	location / {
		include proxy_params;
		proxy_set_header X-Forwarded-Host "$http_host:$server_port";
        proxy_pass  http://127.0.0.1:9100$request_uri;
    }

    error_log /var/log/nginx/syrma.log;
    access_log /var/log/nginx/syrma.log;
}

subject: add nginx sample config

message: add nginx sample config

repos: syrma-php/web-container-bundle


new_contents:
server {
        root /path/to/vhost/public;
        index index.php index.html index.htm;
        server_name localhost;
        client_max_body_size 20M;
        location / {
                try_files $uri $uri/ /index.php?$args;
        }

        location ~ .*.php$ {
            fastcgi_pass  127.0.0.1:9000;
            fastcgi_index index.php;
            include fastcgi_params;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }

}

subject: add nginx vhost

message: add nginx vhost


new_contents:
<VirtualHost *:80>
        ServerName symfony.dev
        ServerAdmin webmaster@localhost
        DocumentRoot /var/vhosts/symfony/web
#        DirectoryIndex app.php
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/vhosts/symfony/>
                DirectoryIndex app.php
                AllowOverride All
                Order allow,deny
                Allow from all
                RewriteEngine On
                RewriteCond %{REQUEST_FILENAME} !-f
                RewriteRule ^(.*)$ app.php [QSA,L]
                RedirectMatch permanent ^/app\.php/(.*) /$1
                Options FollowSymLinks
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/symfony-error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/symfony-access.log combined
</VirtualHost>

<IfModule mod_ssl.c>
<VirtualHost *:443>
        ServerName symfony.dev
        ServerAdmin webmaster@localhost
        DocumentRoot /var/vhosts/symfony/web
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/vhosts/symfony/>
                Options FollowSymLinks
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/symfony-error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/symfony-access.log combined

        SSLEngine on
        SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
        SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

        BrowserMatch "MSIE [2-6]" \
                nokeepalive ssl-unclean-shutdown \
                downgrade-1.0 force-response-1.0
        # MSIE 7 and newer should be able to use keepalive
        BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown

</VirtualHost>
</IfModule>

subject: Add example vhost file

message: Add example vhost file

repos: jerram/symfony-preloaded


new_contents:
<VirtualHost *:80>

        ServerAdmin webmaster@localhost
        ServerName localhost

        DocumentRoot /path/to/vhost/public/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /path/to/vhost/public/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

subject: add apache vhost

message: add apache vhost


subject: add apache vhost to data folder

message:
add apache vhost to data folder

useful for fresh installation

repos: BillRun/NPG,BillRun/NPG,BillRun/NPG