在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
Symfony server { server_name ogeek.net www.ogeek.net; root /data/site/www.ogeek.net; location / { # try to serve file directly, fallback to rewrite try_files $uri @rewriteapp; } location @rewriteapp { # rewrite all to app.php rewrite ^(.*)$ /app.php/$1 last; } location ~ ^/(app|app_dev|config).php(/|$) { fastcgi_pass unix:/var/run/php5-fpm.sock; # 改成你对应的FastCGI fastcgi_split_path_info ^(.+.php)(/.*)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param HTTPS off; } error_log /data/logs/nginx/www.ogeek.net_error.log; } CodeIgniter server { listen 80; server_name ogeek.net www.ogeek.net; root /data/site/www.ogeek.net; index index.php; error_log log/error.log; # set expiration of assets to MAX for caching location ~* .(ico|css|js|gif|jpe?g|png)(?[0-9]+)?$ { expires max; log_not_found off; } # main codeigniter rewrite rule location / { try_files $uri $uri/ /index.php; } # php parsing location ~ .php$ { root /data/site/ogeek.net/; try_files $uri =404; fastcgi_pass unix:/tmp/php5-fpm.sock; # 改成对应的FastCGI fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; fastcgi_buffer_size 128k; fastcgi_buffers 256 4k; fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; } }
$config['base_url'] = "https://www.ogeek.net/"; $config['index_page'] = ""; $config['uri_protocol'] = "REQUEST_URI"; |
请发表评论