Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change pub/.htaccess MAGE_MODE comment #5367

Merged

Conversation

erikhansen
Copy link
Contributor

@erikhansen erikhansen commented Jun 29, 2016

In Magento 2.1, the pub/.htaccess file was changes to include a comment demonstrating how a developer could change the MAGE_MODE to any of the three modes:

#   SetEnv MAGE_MODE default # or production or developer

This change was great, however simply uncommenting the line in the .htaccess file resulted in this line:

   SetEnv MAGE_MODE default # or production or developer

The line above results in an Apache Internal Server 500 error, as it is invalid. My pull request moves the comment above the commented-out command so that developers don't accidentally cause an error.

@erikhansen
Copy link
Contributor Author

FYI - I've signed the CLA a couple of times for this specific PR, but it's still showing as "not signed".

@stamster
Copy link

stamster commented Jul 7, 2016

With nginx, there's no problem with such syntax (in-line comments).

set $MAGE_MODE developer; # or production or developer or default

@magento-team
Copy link
Contributor

@erikhansen thank you for your contribution

@erikhansen
Copy link
Contributor Author

@magento-team @vrann Thanks for merging this PR. I just created another PR to fix an indentation issue created by this PR: #9234

@erikhansen erikhansen deleted the feature/change-pub-htaccess branch April 13, 2017 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants