| Server IP : 65.108.144.40 / Your IP : 216.73.217.165 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 User : dev ( 1000) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /etc/apache2/sites-enabled/ |
Upload File : |
<VirtualHost *:80>
ServerAdmin devops@growthnatives.com
ServerName erp.demandtech.org
ServerAlias www.erp.demandtech.org
RewriteEngine on
RewriteCond %{SERVER_NAME} =erp.demandtech.org [OR]
RewriteCond %{SERVER_NAME} =www.erp.demandtech.org
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<VirtualHost *:443>
SSLEngine On
ServerAdmin devops@growthnatives.com
ServerName erp.demandtech.org
ServerAlias www.erp.demandtech.org
Header set Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE"
# Serve static files
Alias /static/ /home/dev/erp/erp/static/
<Directory /home/dev/erp/erp/static/>
Require all granted
</Directory>
# Serve media files
Alias /media/ /home/dev/erp/erp/media/
<Directory /home/dev/erp/erp/media/>
Require all granted
AllowOverride None
</Directory>
# Exclude static & media from proxy
ProxyPass /static/ !
ProxyPass /media/ !
# Proxy everything else to Django
ProxyPass / http://localhost:8000/
ProxyPassReverse / http://localhost:8000/
ErrorLog /home/dev/erp_log/error.log
CustomLog /home/dev/erp_log/access.log combined
SSLCertificateFile /etc/letsencrypt/live/erp.demandtech.org-0003/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/erp.demandtech.org-0003/privkey.pem
</VirtualHost>