1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

Add test server.conf file

This commit is contained in:
yan
2015-04-06 18:00:38 -07:00
parent 13232452f8
commit b245394355
4 changed files with 64 additions and 1 deletions

View File

@@ -96,6 +96,7 @@ class NginxParser(object):
:rtype: bool
"""
# Look for a server block that contains 'listen [port] ssl'
return False
def get_vhosts(self):

View File

@@ -14,7 +14,7 @@ events {
worker_connections 1024;
}
include foo.conf
include foo.conf;
http {
include mime.types;

View File

@@ -6,6 +6,67 @@ error_log logs/error.log info;
pid logs/nginx.pid;
events {
worker_connections 1024;
}
include foo.conf;
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log logs/access.log main;
sendfile on;
tcp_nopush on;
keepalive_timeout 0;
keepalive_timeout 65;
gzip on;
server {
listen 8080;
server_name localhost;
charset koi8-r;
access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
proxy_pass http://127.0.0.1;
}
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
server {
listen 8000;
listen somename:8080;
include server.conf;
location / {
root html;
index index.html index.htm;
}
}
include conf.d/test.conf;
include sites-enabled/*;
server {
listen 443 ssl;

View File

@@ -0,0 +1 @@
server_name somename alias another.alias;