Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb90e65b

Browse files
committed
Clear nginx default configuration file
1 parent9969c9a commitb90e65b

File tree

1 file changed

+0
-108
lines changed

1 file changed

+0
-108
lines changed

‎etc/nginx/default.conf‎

Lines changed: 0 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -1,108 +0,0 @@
1-
# Nginx configuration
2-
3-
# HTTP Server
4-
server {
5-
listen 80 default_server;
6-
listen [::]:80 default_server;
7-
server_name localhost;
8-
9-
# Logging
10-
access_log /var/log/nginx/access.log;
11-
error_log /var/log/nginx/error.log;
12-
13-
# Root directory and index files
14-
root /var/www/html/$(APP_DIR)/public;
15-
index index.php index.html;
16-
17-
# Workspace specific configuration
18-
include /etc/nginx/conf.d/workspace/default.conf;
19-
20-
# PHP-FPM Configuration
21-
location ~ \.php$ {
22-
try_files $uri =404;
23-
fastcgi_split_path_info ^(.+\.php)(/.+)$;
24-
fastcgi_pass php:9000;
25-
fastcgi_index index.php;
26-
include fastcgi_params;
27-
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
28-
fastcgi_param PATH_INFO $fastcgi_path_info;
29-
}
30-
31-
# Deny access to hidden files
32-
location ~ /\. {
33-
deny all;
34-
}
35-
36-
# Deny access to specific directories
37-
location ~ ^/(vendor|tests|src|app)/ {
38-
deny all;
39-
return 404;
40-
}
41-
42-
# Optimize static file serving
43-
location ~* \.(jpg|jpeg|png|gif|ico|css|js|svg|woff|woff2|ttf|eot)$ {
44-
expires 30d;
45-
add_header Cache-Control "public, no-transform";
46-
}
47-
}
48-
49-
# HTTPS Server (uncomment to enable SSL)
50-
# server {
51-
# listen 443 ssl;
52-
# listen [::]:443 ssl;
53-
# http2 on;
54-
#
55-
# server_name localhost;
56-
#
57-
# # SSL Configuration
58-
# ssl_certificate /etc/ssl/server.crt;
59-
# ssl_certificate_key /etc/ssl/server.key;
60-
#
61-
# # Modern SSL settings
62-
# ssl_protocols TLSv1.2 TLSv1.3;
63-
# ssl_prefer_server_ciphers on;
64-
# ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
65-
# ssl_session_cache shared:SSL:10m;
66-
# ssl_session_timeout 1d;
67-
# ssl_session_tickets off;
68-
#
69-
# # Root directory and index files
70-
# root /var/www/html/$(APP_DIR)/public;
71-
# index index.php index.html;
72-
#
73-
# # Logging
74-
# access_log /var/log/nginx/access.log;
75-
# error_log /var/log/nginx/error.log;
76-
#
77-
# # Workspace specific configuration
78-
# include /etc/nginx/conf.d/workspace/default.conf;
79-
#
80-
# # PHP-FPM Configuration
81-
# location ~ \.php$ {
82-
# try_files $uri =404;
83-
# fastcgi_split_path_info ^(.+\.php)(/.+)$;
84-
# fastcgi_pass php:9000;
85-
# fastcgi_index index.php;
86-
# include fastcgi_params;
87-
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
88-
# fastcgi_param PATH_INFO $fastcgi_path_info;
89-
# fastcgi_param HTTPS on;
90-
# }
91-
#
92-
# # Deny access to hidden files
93-
# location ~ /\. {
94-
# deny all;
95-
# }
96-
#
97-
# # Deny access to specific directories
98-
# location ~ ^/(vendor|tests|src|app)/ {
99-
# deny all;
100-
# return 404;
101-
# }
102-
#
103-
# # Optimize static file serving
104-
# location ~* \.(jpg|jpeg|png|gif|ico|css|js|svg|woff|woff2|ttf|eot)$ {
105-
# expires 30d;
106-
# add_header Cache-Control "public, no-transform";
107-
# }
108-
# }

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp