Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Itt az nginx config:
- user nginx nginx;
- worker_processes 4;
- pid /var/run/nginx.pid;
- worker_rlimit_nofile 1024;
- events {
- worker_connections 2048;
- use epoll;
- multi_accept on;
- }
- http {
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- access_log "/var/log/nginx/access.log";
- error_log "/var/log/nginx/error.log";
- keepalive_timeout 120;
- include /etc/nginx/conf.d/*.conf;
- include /etc/nginx/sites-enabled/*;
- }
- deault.conf:
- server {
- listen *:80;
- server_name vagrant.ceg.com;
- return 301 'https://$server_name$request_uri';
- }
- https.conf:
- server {
- listen *:443;
- ssl on;
- ssl_certificate ....crt;
- ssl_certificate_key ....key;
- server_name vagrant.ceg.com www.vagrant.ceg.com;
- root "/srv/www";
- index index.php;
- location / {
- autoindex on;
- }
- location ~ \.php$ {
- include /etc/nginx/fastcgi_params;
- fastcgi_param ENVIRONMENT dev;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_index index.php;
- if (-f $request_filename) {
- fastcgi_pass 192.168.42.114:9000;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment