四虎影视在线影院在线观看,小s货再浪些再咬紧点h,国产精品水嫩水嫩,97精产国品一二三产区
標(biāo)題:
[教程]
nginx ssl證書 apache ssl lanmp ssl 安裝教程 https 服務(wù)
[打印本頁]
作者:
374399415
時間:
2013-10-25 15:55
標(biāo)題:
nginx ssl證書 apache ssl lanmp ssl 安裝教程 https 服務(wù)
本帖最后由 374399415 于 2013-10-26 12:00 編輯
如果安裝
Discuz!論壇程序的
不要使用ssh 或者wdCP后臺直接上傳這些操作會導(dǎo)致https無法顯示圖片(因為權(quán)限和用戶組問題)
請使用ftp上傳程序
2樓整理附上
作者:
374399415
時間:
2013-10-25 16:01
本帖最后由 374399415 于 2013-10-26 12:13 編輯
這是nginx 下虛擬主機(jī)配置文件
如果是nginx前端+apache后端
apache 不需要設(shè)置
請大家看清代碼有些不要無腦照搬!
server {
listen 192.168.1.108:443;
#這里是綁定IP因為有些服務(wù)器可用多個IP地址
server_name www.cnmas.com;
root /www/web/cnmas/public_html;
index index.html index.php index.htm;
error_page 400 /errpage/400.html;
error_page 401 /errpage/401.html;
error_page 403 /errpage/403.html;
error_page 404 /errpage/404.html;
error_page 405 /errpage/405.html;
error_page 401 /errpage/500.html;
ssl on;
ssl_certificate server.crt;
#/www/wdlinux/nginx-1.0.15/conf/請上傳到該目錄下
ssl_certificate_key server.key;
#/www/wdlinux/nginx-1.0.15/conf/請上傳到該目錄下
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
fastcgi_param HTTPS on;
}
location ~ .*\.(gif|jpg|png|bmp|ico|jpeg|JPEG|JPG|GIF)$ {
expires 1h;
}
location ~ .*\.(doc|swf|flv)$ {
expires 1h;
}
location ~ .*\.(js|css)$ {
expires 1h;
}
}
server {
listen 80;
server_name www.cnmas.com;
rewrite ^/(.*) https://www.cnmas.com/$1 permanent;
#這里是強(qiáng)制http跳轉(zhuǎn)https
}
搭個小車
http://www.cnmas.com 馬鞍山貴友商貿(mào)
http://www.bale123.com芭樂劇集站
http://www.bale123.cn 芭樂123網(wǎng)址導(dǎo)航
http://www.balefx.com 芭樂淘寶返現(xiàn)
http://www.masidc.com馬鞍山IDC
http://www.geqing.cn 芭樂科技-葛清
http://www.mastyz.com 馬鞍山天佑正餐飲有限公司-十八崗特色風(fēng)味館
歡迎前來更換鏈接 論壇私信我就可以了
作者:
hadals
時間:
2013-10-25 23:45
我等著呢,快點發(fā)吧 大蝦
作者:
374399415
時間:
2013-10-26 11:49
本帖最后由 374399415 于 2013-10-26 11:54 編輯
回復(fù)
3#
hadals
代碼已上
作者:
374399415
時間:
2013-10-26 18:02
人工置頂。
作者:
374399415
時間:
2013-10-27 00:01
人工置頂。
作者:
374399415
時間:
2013-10-27 20:54
人工置頂。
作者:
hionline
時間:
2014-5-5 00:10
這個有沒有用,我試一下看看
作者:
sanky
時間:
2015-5-28 00:41
yezizhiyinliao.com照樓主教程安裝網(wǎng)頁打不開原來的配置如下:server {
listen 80;
server_name yezizhiyinliao.com www.yezizhiyinliao.com;
root /www/web/yezizhiyinliao_com/public_html;
index index.html index.php index.htm;
error_page 400 /errpage/400.html;
error_page 403 /errpage/403.html;
error_page 404 /errpage/404.html;
location ~ \.php$ {
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
location / {
try_files $uri @apache;
}
location @apache {
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
}
作者:
cdd311
時間:
2016-12-14 18:09
可以用,但是我還有一個問題。之前的http鏈接,比如引用css文件,那些鏈接不會改變
作者:
junlee
時間:
2016-12-19 21:27
回復(fù)
10#
cdd311
是的,我開啟之后,網(wǎng)站CSS會錯亂,果斷放棄
歡迎光臨 WDlinux官方論壇 (http://cd-genova.com/bbs/)
Powered by Discuz! 7.2