iam_production_deployment_guide
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| iam_production_deployment_guide [2026/02/26 11:38] – [Proxy through NGINX - Droplet FIX] pradnya | iam_production_deployment_guide [2026/02/26 12:47] (current) – [cPanel's userdata include] pradnya | ||
|---|---|---|---|
| Line 455: | Line 455: | ||
| Stop docker and NginX and start again. | Stop docker and NginX and start again. | ||
| - | ===== cPanel' | + | ===== cPanel' |
| **Step 1: Create the userdata directories** | **Step 1: Create the userdata directories** | ||
| Line 461: | Line 461: | ||
| bash | bash | ||
| - | < | + | < |
| - | mkdir -p / | + | mkdir -p / |
| + | mkdir -p / | ||
| </ | </ | ||
| + | |||
| **Step 2: Create HTTP proxy config** | **Step 2: Create HTTP proxy config** | ||
| bash | bash | ||
| - | < | + | < |
| + | nano / | ||
| </ | </ | ||
| + | |||
| Add: | Add: | ||
| - | < | + | < |
| + | RewriteEngine On RewriteRule ^(.*)$ https:// | ||
| **Step 3: Create HTTPS proxy config** | **Step 3: Create HTTPS proxy config** | ||
| Line 480: | Line 485: | ||
| bash | bash | ||
| - | < | + | < |
| </ | </ | ||
| + | |||
| Add: | Add: | ||
| - | < | + | < |
| - | ProxyPass / http:// | + | ProxyPreserveHost On\ |
| - | ProxyPassReverse / http:// | + | ProxyPass / http:// |
| - | RequestHeader set X-Forwarded-Proto " | + | ProxyPassReverse / http:// |
| + | RequestHeader set X-Forwarded-Proto " | ||
| RequestHeader set X-Forwarded-Port " | RequestHeader set X-Forwarded-Port " | ||
| + | |||
| </ | </ | ||
| Line 496: | Line 504: | ||
| bash | bash | ||
| - | < | + | < |
| + | / | ||
| httpd -t | httpd -t | ||
| - | systemctl restart httpd'' | + | systemctl restart httpd |
| + | |||
| + | </ | ||
| + | |||
| + | Then test: | ||
| + | |||
| + | bash | ||
| + | |||
| + | < | ||
| + | curl -I https:// | ||
| + | |||
| + | </ | ||
| + | |||
| + | Expected result: | ||
| + | |||
| + | < | ||
| + | curl -I [[https:// | ||
| + | |||
| + | HTTP/1.1 302 Found Date: Thu, 26 Feb 2026 11:22:25 GMT | ||
| + | |||
| + | Server: Apache | ||
| + | |||
| + | Location: [[https:// | ||
| + | |||
| + | Referrer-Policy: | ||
| + | |||
| + | Strict-Transport-Security: | ||
| + | |||
| + | X-Content-Type-Options: | ||
| + | |||
| + | X-XSS-Protection: | ||
| + | |||
| + | mode=block | ||
| </ | </ | ||
| + | Check for **Location: https:// | ||
| + | This is poining to correct directory and not apache direcoty with cgi folder. | ||
iam_production_deployment_guide.1772105890.txt.gz · Last modified: by pradnya
