Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name mrkirby153.tk;
- root /var/www/mrkirby153;
- location / {
- index index.php index.html index.htm;
- }
- location ~ \.php {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- }
- server {
- # The port to listen on. By default, any webserver is on port 80
- listen 80;
- server_name solder.mrkirby153.tk
- # The location for the root of your web server
- root /var/www/mrkirby153/solder/public/;
- # The files to look for to open when no file is specified. For example, 192.168.1.111 will open the index.php page
- index index.php index.html index.htm;
- # Forward all requests to the TechnicSolders main file
- location / {
- try_files $uri $uri/ /index.php$is_args$args;
- }
- # Pass the PHP scripts to FastCGI server listening on /var/run/php5-fpm.sock
- location ~ \.php$ {
- try_files $uri /index.php =404;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment