这是实际创建网站的地方。在这里,您可以指定网站域,拥有该网站的客户端,IP地址,配额,网站将具有的功能(如PHP,CGI,SSL等)。该表单包含以下字段:
在SSL选项卡上,您可以创建自签名SSL证书以及证书签名请求(CSR),您可以使用该证书签名请求来申请由受信任的证书颁发机构(CA)签名的SSL证书,例如Verisign,Comodo,Thawte等等。没有必要购买这样的可信SSL证书,但您应该注意,如果您使用自签名SSL证书,浏览器将向您的访问者显示警告。
请注意,除非使用SNI,否则每个IP地址只能有一个SSL网站。SNI是服务器名称指示的缩写,允许您在一个IP地址上运行多个SSL虚拟主机。请注意,目前所有浏览器/操作系统都不支持SNI。支持TLS服务器名称指示的浏览器/客户端:
创建自签名证书后,您将在SSL密钥,SSL请求和SSL证书字段中找到数据(可能需要一到两分钟,直到数据出现在字段中):
要还原备份,请单击要还原的备份旁边的“还原”按钮。恢复将在接下来的几分钟内处理。如果要下载备份,请单击“ 下载”按钮; 在接下来的几分钟内,备份将被放置在备份目录中,您可以通过FTP下载备份目录。
(此选项卡仅对ISPConfing 管理员用户可见。)
例子:
location / {
if ($query_string ~ ".+") {
return 405;
}
# pass requests from logged-in users to Apache
if ($http_cookie ~ "DRUPAL_UID" ) {
return 405;
} # pass POST requests to Apache
if ($request_method !~ ^(GET|HEAD)$ ) {
return 405;
}
error_page 405 = @nocache;
# do not allow browsers to cache HTML
add_header Expires "Sun, 19 Nov 1978 05:00:00 GMT";
add_header Cache-Control "no-store, no-cache, must-revalidate,
post-check=0, pre-check=0";
# serve requested content from the cache if available, otherwise pass the
request to Apache
try_files /cache/normal/$host/${uri}_.html /cache/perm/$host/${uri}_.css
/cache/perm/$host/${uri}_.js /cache/$host/0$uri.html
/cache/$host/0${uri}/index.html @nocache;
}
location @nocache {
try_files $uri $uri/ /index.php?$args;
}
location ~* .(jpg|jpeg|png|gif|css|js|ico)$ {
expires max;
log_not_found off;
}
这将取代原始位置@php {}块:
location @php {
try_files $uri =404;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/lib/php5-fpm/web1.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_intercept_errors on;
fastcgi_buffer_size 128k;
fastcgi_buffers 256 16k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_max_temp_file_size 0;
fastcgi_read_timeout 7200;
}
这会将位置块内的指令合并到原始位置块中:
location @php { ##merge##
fastcgi_buffer_size 128k;
fastcgi_buffers 256 16k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_max_temp_file_size 0;
fastcgi_read_timeout 7200;
}
这将删除@php位置块:
location @php { ##delete##
}
代理指令(仅限nginx):如果您在“重定向”选项卡上使用类型代理重定向到外部URL,则此字段使您有机会手动将其他代理指令写入站点的虚拟主机容器,每行一个指令。如果您在系统>指令Snipptes下定义了代理指令片段,您将在textarea右侧找到它们名称列出的片段。如果单击代码段的名称,则代码段的内容将插入当前光标位置。
例子:
proxy_set_header Host $host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass_header Authorization;
client_max_body_size 0;
client_body_buffer_size 1m;
proxy_intercept_errors on;
proxy_buffering on;
proxy_buffer_size 128k;
proxy_buffers 256 16k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_max_temp_file_size 0;
proxy_read_timeout 300;