humanafterall Posted November 30, 2020 Share Posted November 30, 2020 Hi, I would like to set an admin template to 'https only' as recommended in the Processwire security docs. However if I do this it forces this setting locally too, resulting in https://localhost requests which result in an error page. Is there a simple way round this? Setting https for templates in the config? Thanks! Link to comment Share on other sites More sharing options...
netcarver Posted November 30, 2020 Share Posted November 30, 2020 @humanafterall If you are developing on localhost and need to override the https settings in your template files you can do this by using copying your site/config.php file to site/config-dev.php file, and adding this option to the new file: $config->noHTTPS = true; ...and it should work. There are several posts here in the forum that talk about how to setup your dev and live config files. 1 Link to comment Share on other sites More sharing options...
humanafterall Posted November 30, 2020 Author Share Posted November 30, 2020 I have local and production config files, so that's exactly the setting I need, thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now