Skip to content

Commit

Permalink
Merge pull request #25 from devilbox/release-0.5
Browse files Browse the repository at this point in the history
Fix Apache 2.2/2.4 templates for SSL
  • Loading branch information
cytopia authored May 2, 2018
2 parents 35b9ce1 + 3b26c3a commit 4e3a956
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/vhost_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def print_help():

def print_version():
"""Show program version."""
print('vhost_gen v0.4 (2018-04-29)')
print('vhost_gen v0.5 (2018-05-02)')
print('cytopia <[email protected]>')
print('https://github.com/devilbox/vhost-gen')
print('The MIT License (MIT)')
Expand Down
2 changes: 1 addition & 1 deletion etc/templates/apache22.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ features:
xdomain_request: |
# Allow cross domain request from these hosts
SetEnvIf Origin "__REGEX__" AccessControlAllowOrigin=$0$1
SetEnvIf Origin "__REGEX__" AccessControlAllowOrigin=$0
Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header always set Access-Control-Max-Age "0"
Expand Down
2 changes: 1 addition & 1 deletion etc/templates/apache24.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ features:
xdomain_request: |
# Allow cross domain request from these hosts
SetEnvIf Origin "__REGEX__" AccessControlAllowOrigin=$0$1
SetEnvIf Origin "__REGEX__" AccessControlAllowOrigin=$0
Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header always set Access-Control-Max-Age "0"
Expand Down

0 comments on commit 4e3a956

Please sign in to comment.