Last active
December 29, 2016 14:37
-
-
Save fer-ri/f27df1d9577688a8d7ea to your computer and use it in GitHub Desktop.
Default Nginx Conf Debian / Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
root /home/nginx/domains/default/public_html; | |
# Add index.php to the list if you are using PHP | |
index index.php index.html index.htm index.nginx-debian.html; | |
server_name _; | |
location / { | |
# First attempt to serve request as file, then | |
# as directory, then fall back to displaying a 404. | |
try_files $uri $uri/ /index.php?$args; | |
} | |
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 | |
# | |
location ~ \.php$ { | |
include snippets/fastcgi-php.conf; | |
# With php5-fpm: | |
fastcgi_pass unix:/var/run/php5-fpm.sock; | |
} | |
} |
Options.conf Tuxlite
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Post Installation
Add nginx user
PHP FPM
/etc/php5/fpm/pool.d/www.conf
php5-fpm-www-data.sock
meniadiphp5-fpm.sock
NGINX
/etc/nginx/nginx.conf
, ubah www-data menjadi user ownerOpenVPN
https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-debian-8
Done ..