SSL Integration

I am in need of some guidance when it comes to enabling the SSL certs on the site. I feel like I am missing a step. Currently using Disposable Basic Pack v3.4.x on phpVMS v7 dev (latest as of 2 July 2023).

 

In phpVMS v5.x it was just a matter of changing two lines of code in the local and global config.php files from HTTP to HTTPS. Based on the instructions during the setup of v7 it stated that the env.php file has the same capabilities as the config files from v5. I don’t see a related option in the file and after looking around the documentation, I could not find any relevant materials. Any guidance would be appreciated.

 

Thanks in advance! 

3 minutes ago, RedKingOne said:

I am in need of some guidance when it comes to enabling the SSL certs on the site. I feel like I am missing a step. Currently using Disposable Basic Pack v3.4.x on phpVMS v7 dev (latest as of 2 July 2023).

 

In phpVMS v5.x it was just a matter of changing two lines of code in the local and global config.php files from HTTP to HTTPS. Based on the instructions during the setup of v7 it stated that the env.php file has the same capabilities as the config files from v5. I don’t see a related option in the file and after looking around the documentation, I could not find any relevant materials. Any guidance would be appreciated.

 

Thanks in advance! 

 

Just change your APP_URL in your env.php , then clear application cache from admin > maintenance, that’s all.

 

APP\_URL='http://crew.mygreatva.com' // without SSL APP\_URL='https://crew.mygreatva.com' // with SSL

 

If your site is live and pilots have configured their vmsAcars clients (according to old non-secure url), advise them to re-download the config file (from their profile) or just add the missing “s” to the url in vmsAcars settings (needs to be done by each pilot, as this is a client/local matter).

 

Additionally you may consider defining a permanent redirection from http to https via your hosting control panel or server settings (not related to phpVMS)

 

Good luck

5 minutes ago, DisposableHero said:

 

Just change your APP_URL in your env.php , then clear application cache from admin > maintenance, that’s all.

 

APP_URL=‘http://crew.mygreatva.com’ // without SSL APP_URL=‘https://crew.mygreatva.com’ // with SSL

 

If your site is live and pilots have configured their vmsAcars clients (according to old non-secure url), advise them to re-download the config file (from their profile) or just add the missing “s” to the url in vmsAcars settings (needs to be done by each pilot, as this is a client/local matter).

 

Additionally you may consider defining a permanent redirection from http to https via your hosting control panel or server settings (not related to phpVMS)

 

Good luck

 

Magic!! LoL

Thanks for the assistance, I had not cleared the cache.

1 Like

Yeah  That is the most critical and most forgotten step

 

If you change something from env.php always clear the application cache, otherwise it will not be loaded/used.