-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sometimes it is necessary to alter the ports Apache listens for connections on. Defaults (`80` and `443` for SSL) are preserved, but if you do need to override, `apache_port` and `apache_ssl_port` have been added.
- Loading branch information
Hector Castro
committed
Oct 13, 2014
1 parent
28f7c20
commit 363df02
Showing
4 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
--- | ||
apache_version: "2.4.7-1ubuntu4.1" | ||
apache_delete_default_site: False | ||
apache_port: 80 | ||
apache_ssl_port: 443 |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# If you just change the port or add more ports here, you will likely also | ||
# have to change the VirtualHost statement in | ||
# /etc/apache2/sites-enabled/000-default.conf | ||
|
||
Listen {{ apache_port }} | ||
|
||
<IfModule ssl_module> | ||
Listen {{ apache_ssl_port }} | ||
</IfModule> | ||
|
||
<IfModule mod_gnutls.c> | ||
Listen {{ apache_ssl_port }} | ||
</IfModule> | ||
|
||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet |