- 分享吧2013-05-20论坛元老838
- 本帖最后由 分享吧 于 2013-5-20 20:03 编辑 *
http 没问题了。
但是 跳转到 https就出问题啊。。- server
- {
- listen 80;
- listen 443;
- server_name nzqi.com www.nzqi.com;
- ssl on;
- ssl_certificate /root/nzqi.crt;
- ssl_certificate_key /root/nzqi.key;
- ssl_session_timeout 5m;
- index index.html index.htm index.php;
- if ( $host != 'https://www.nzqi.com' )
- {
- rewrite ^/(.*)$ https://www.nzqi.com/$1 permanent;
- }
- root /home/wwwroot;
- - location ~ .*\.(php|php5)?$
- {
- try_files $uri =404;
- fastcgi_pass unix:/tmp/php-cgi.sock;
- fastcgi_index index.php;
- include fcgi.conf;
- }
- - location /status {
- stub_status on;
- access_log off;
- }
- - location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
- {
- expires 30d;
- }
- - location ~ .*\.(js|css)?$
- {
- expires 12h;
- }
- - access_log /home/wwwlogs/access.log access;
- }
- include vhost/*.conf;
- }复制代码感谢 ph4ntasy 热情帮助。 问题已解决!!