ServerRoot "/etc/httpd"
Listen 80
Include conf.modules.d/*.conf
User apache
Group apache
ServerAdmin root@localhost
AllowOverride none
Require all denied
DocumentRoot "/var/www/html"
AllowOverride None
Require all granted
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
DirectoryIndex index.php index.html
Require all denied
ErrorLog "logs/error_log"
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog "logs/access_log" combined
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
AllowOverride None
Options None
Require all granted
TypesConfig /etc/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddDefaultCharset UTF-8
EnableSendfile on
IncludeOptional conf.d/*.conf
Listen 443
# =========================
# 🔥 NODE PROXY (MULTI-APP READY)
# =========================
ProxyRequests Off
ProxyPreserveHost On
# ===== APP 1 (PUERTO 3001) =====
ProxyPass "/instagram/" "http://127.0.0.1:3001/"
ProxyPassReverse "/instagram/" "http://127.0.0.1:3001/"
ProxyPass "/api/" "http://127.0.0.1:3001/api/"
ProxyPassReverse "/api/" "http://127.0.0.1:3001/api/"
ProxyPass "/webhook/" "http://127.0.0.1:3001/webhook/"
ProxyPassReverse "/webhook/" "http://127.0.0.1:3001/webhook/"
ProxyPass "/ping" "http://127.0.0.1:3001/ping"
ProxyPassReverse "/ping" "http://127.0.0.1:3001/ping"
# ===== FUTUROS PROYECTOS =====
# Ejemplo puerto 3000
# ProxyPass "/app1/" "http://127.0.0.1:3000/"
# ProxyPassReverse "/app1/" "http://127.0.0.1:3000/"
# Ejemplo puerto 3200
# ProxyPass "/app2/" "http://127.0.0.1:3200/"
# ProxyPassReverse "/app2/" "http://127.0.0.1:3200/"