Explorar el Código

아 리드미

PtrKR hace 7 años
padre
commit
89118baead
Se han modificado 3 ficheros con 33 adiciones y 0 borrados
  1. 12 0
      conf_example/apache/httpd-vhost.conf
  2. 3 0
      conf_example/apache/httpd.conf
  3. 18 0
      conf_example/nginx.conf

+ 12 - 0
conf_example/apache/httpd-vhost.conf

@@ -0,0 +1,12 @@
+<VirtualHost *:80>
+    DocumentRoot <doc root>
+    ServerName <hostname>
+    ErrorLog <errlog path>
+    CustomLog <customlog path> common
+    
+    ProxyRequests           Off
+    ProxyPreserveHost       On      
+    
+    ProxyPass           http://localhost:<port>
+    ProxyPassReverse    http://localhost:<port>
+</VirtualHost> 

+ 3 - 0
conf_example/apache/httpd.conf

@@ -0,0 +1,3 @@
+LoadModule proxy_module modules/mod_proxy.so
+LoadModule proxy_connect_module modules/mod_proxy_connect.so
+LoadModule proxy_http_module modules/mod_proxy_http.so

+ 18 - 0
conf_example/nginx.conf

@@ -0,0 +1,18 @@
+server {
+ listen 80;
+ listen [::]:80;
+
+ listen 443 ssl;
+ listen [::]:443 ssl;
+
+ server_name <domain>;
+
+ location / {
+ proxy_redirect off;
+ proxy_pass_header Server;
+ proxy_set_header Host $http_host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Scheme $scheme;
+ proxy_pass http://localhost:<port>;
+ }
+}