Ticker

6/recent/ticker-posts

How to Configue Apache with Nodejs using Xamp in windows.



Test with Xamp v3.2.4

Example in file httpd-vhosts.conf




"""
<VirtualHost *:80>
     
    ServerName mydomain.com
    ServerAlias www.mydomain.com
     
    LoadModule alias_module modules/mod_alias.so
    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_http_module modules/mod_proxy_http.so
     
    <IfModule alias_module>
 
    
    Alias /img "E:\www\IMG"
    <Directory "E:\www\IMG">
      Options Indexes FollowSymLinks Includes ExecCGI
      AllowOverride All
      Require all granted
    </Directory>
   
 
    </IfModule>
     
        
     
    LimitRequestBody 250000000
    ProxyRequests off     
     
     
         
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
     
     
     
     
    ProxyPreserveHost On
     
    ProxyPassMatch ^/img !
    ProxyPass  / http://127.0.0.1:3000/
    ProxyPassReverse / http://127.0.0.1:3000/
     
    ErrorLog "E:/xampp/apache/logs/web-error.log"
    CustomLog "logs/web-access.log" common
     
     
     
</VirtualHost>
"""

Reacciones:

Post a Comment

0 Comments