ServerAdmin webmaster@localhost
ServerName webiletechnologies.com
ServerAlias www.webiletechnologies.com 195.250.31.43
# DocumentRoot /var/www/html/webile-technologies
# Proxy requests to Next.js app running on port 3000
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/
# Serve static files from .next directory
# Alias /_next /var/www/html/webile-technologies/.next
Require all granted
Options -Indexes +FollowSymLinks
AllowOverride All
# Proxy for webile-api (PHP Backend)
ProxyPass /webile-api/ http://127.0.0.1:8080/
ProxyPassReverse /webile-api/ http://127.0.0.1:8080/
Require all granted
# Optional: Configure logging
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerAdmin webmaster@localhost
ServerName webiletechnologies.com
ServerAlias www.webiletechnologies.com 195.250.31.43
# DocumentRoot /var/www/html/webile-technologies
# SSL Configuration
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/webiletechnologies.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/webiletechnologies.com/privkey.pem
# Proxy requests to Next.js app running on port 3000
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/
# Serve static files from .next directory
# Alias /_next /var/www/html/webile-technologies/.next
Require all granted
Options -Indexes +FollowSymLinks
AllowOverride All
# Proxy for webile-api (PHP Backend)
ProxyPass /webile-api/ http://127.0.0.1:8080/
ProxyPassReverse /webile-api/ http://127.0.0.1:8080/
Require all granted
# Optional: Configure logging
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# Add these headers for better proxy functionality
Header always set X-Frame-Options "SAMEORIGIN"
Header always set X-XSS-Protection "1; mode=block"
Header always set X-Content-Type-Options "nosniff"
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/webile-api
Require all denied
ErrorLog ${APACHE_LOG_DIR}/api-error.log
CustomLog ${APACHE_LOG_DIR}/api-access.log combined