文件操作 - beneggi.com.conf
返回文件管理
返回主菜单
删除本文件
文件: /root/sh/nginx_OLD/conf.d/vhosts/beneggi.com.conf
编辑文件内容
server { listen 5.249.157.183:80; server_name beneggi.com www.beneggi.com; root /home/planet/public_html/beneggi--com; index index.php index.html index.htm; access_log /usr/local/apache/domlogs/beneggi.com.bytes bytes; access_log /usr/local/apache/domlogs/beneggi.com.log combined; error_log /usr/local/apache/domlogs/beneggi.com.error.log error; location / { location ~.*\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { expires max; } location ~ [^/]\.php(/|$) { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; if (!-f $document_root$fastcgi_script_name) { return 404; } fastcgi_pass unix:/opt/alt/php-fpm73/usr/var/sockets/planet.sock; fastcgi_index index.php; include /etc/nginx/fastcgi_params; } } location ~* "/\.(htaccess|htpasswd)$" {deny all;return 404;} disable_symlinks if_not_owner from=/home/planet/public_html/beneggi--com; location /.well-known/acme-challenge { default_type "text/plain"; alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge; } } server { listen 5.249.157.183:80; server_name webmail.beneggi.com; access_log /usr/local/apache/domlogs/beneggi.com.bytes bytes; access_log /usr/local/apache/domlogs/beneggi.com.log combined; error_log /usr/local/apache/domlogs/beneggi.com.error.log error; location / { proxy_pass http://127.0.0.1:2095; include proxy.inc; } location ~ /\.ht {deny all;} location ~ /\.svn/ {deny all;} location ~ /\.git/ {deny all;} location ~ /\.hg/ {deny all;} location ~ /\.bzr/ {deny all;} disable_symlinks if_not_owner from=/home/planet/public_html/beneggi--com; location /.well-known/acme-challenge { default_type "text/plain"; alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge; } } server { listen 5.249.157.183:80; server_name mail.beneggi.com; access_log /usr/local/apache/domlogs/beneggi.com.bytes bytes; access_log /usr/local/apache/domlogs/beneggi.com.log combined; error_log /usr/local/apache/domlogs/beneggi.com.error.log error; location / { proxy_pass http://127.0.0.1:2095; include proxy.inc; } location ~ /\.ht {deny all;} location ~ /\.svn/ {deny all;} location ~ /\.git/ {deny all;} location ~ /\.hg/ {deny all;} location ~ /\.bzr/ {deny all;} disable_symlinks if_not_owner from=/home/planet/public_html/beneggi--com; location /.well-known/acme-challenge { default_type "text/plain"; alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge; } } server { listen 5.249.157.183:80; server_name cpanel.beneggi.com; access_log /usr/local/apache/domlogs/beneggi.com.bytes bytes; access_log /usr/local/apache/domlogs/beneggi.com.log combined; error_log /usr/local/apache/domlogs/beneggi.com.error.log error; location / { proxy_pass https://127.0.0.1:2083; include proxy.inc; } location /pma { proxy_pass https://127.0.0.1:2031; include proxy.inc; } location /roundcube { proxy_pass https://127.0.0.1:2031; include proxy.inc; } location ~ /\.ht {deny all;} location ~ /\.svn/ {deny all;} location ~ /\.git/ {deny all;} location ~ /\.hg/ {deny all;} location ~ /\.bzr/ {deny all;} disable_symlinks if_not_owner from=/home/planet/public_html/beneggi--com; location /.well-known/acme-challenge { default_type "text/plain"; alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge; } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件