-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvhost.conf
94 lines (84 loc) · 4.1 KB
/
vhost.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
server {
listen 80 default_server;
server_name _;
root /srv/single_php_filehost;
error_log stderr;
access_log /dev/stdout;
index index.php;
charset UTF-8;
###RPROXY_GOES_HERE###
types {
image/gif gif;
image/jpeg jpeg jpg;
text/plain txt;
text/plain mml html htm shtml css xml xhtml js;
text/plain atom rss;
text/plain json py rs c cpp lua rb;
image/avif avif;
image/png png;
image/svg+xml svg svgz;
image/tiff tif tiff;
image/webp webp;
image/x-icon ico;
image/x-ms-bmp bmp;
application/pdf pdf;
application/vnd.apple.mpegurl m3u8;
application/vnd.ms-excel xls;
application/vnd.ms-powerpoint ppt;
application/vnd.oasis.opendocument.graphics odg;
application/vnd.oasis.opendocument.presentation odp;
application/vnd.oasis.opendocument.spreadsheet ods;
application/vnd.oasis.opendocument.text odt;
application/vnd.openxmlformats-officedocument.presentationml.presentation
pptx;
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
xlsx;
application/vnd.openxmlformats-officedocument.wordprocessingml.document
docx;
application/wasm wasm;
application/x-7z-compressed 7z;
application/x-perl pl pm;
application/x-rar-compressed rar;
application/x-redhat-package-manager rpm;
application/x-sea sea;
application/x-shockwave-flash swf;
application/x-tcl tcl tk;
application/x-x509-ca-cert der pem crt;
application/zip zip;
application/octet-stream bin exe dll;
application/octet-stream deb;
application/octet-stream dmg;
application/octet-stream iso img;
application/octet-stream msi msp msm;
audio/midi mid midi kar;
audio/mpeg mp3;
audio/ogg ogg;
audio/x-m4a m4a;
audio/x-realaudio ra;
video/3gpp 3gpp 3gp;
video/mp2t ts;
video/mp4 mp4;
video/mpeg mpeg mpg;
video/quicktime mov;
video/webm webm;
video/x-flv flv;
video/x-m4v m4v;
video/x-mng mng;
video/x-ms-asf asx asf;
video/x-ms-wmv wmv;
video/x-msvideo avi;
}
location ~ /(.+)$ {
root /files;
}
location = / {
fastcgi_param HTTP_PROXY "";
fastcgi_intercept_errors On;
include fastcgi_params;
fastcgi_param SCRIPT_NAME index.php;
fastcgi_param SCRIPT_FILENAME /srv/single_php_filehost/index.php;
fastcgi_param QUERY_STRING $query_string;
###HTTPS_GOES_HERE###
fastcgi_pass 127.0.0.1:9000;
}
}