Created
April 28, 2023 02:15
-
-
Save mypapit/41b396f317ed11b88079e96ad5d0c5b2 to your computer and use it in GitHub Desktop.
How to run OJS 3 on Apache HTTPD behind nginx reverse proxy smoothly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Mohammad Hafiz bin Ismail <[email protected]> | |
| # blog.mypapit.net | |
| # this is for Ubuntu/Debian Apache server config | |
| #/etc/apache2/sites-available/your-ojs.conf | |
| <VirtualHost *:9080> | |
| ServerAdmin [email protected] | |
| ServerName ojs-site.example.com | |
| ServerAlias ojs-site.com | |
| DocumentRoot /mnt/websites/ojs/public_html | |
| #add this line -- this is essential!! | |
| SetEnvIf X-Forwarded-Proto "https" HTTPS=on | |
| <Directory /mnt/websites/ojs/public_html/> | |
| Options FollowSymlinks | |
| AllowOverride All | |
| Require all granted | |
| Allow from all | |
| </Directory> | |
| </VirtualHost> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
great!, thanks for the tips 😸😸