Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ install:
install -m 0644 -o root -g root nginx-template.conf $(DESTDIR)/etc/alternc/templates/nginx/
install -m 750 alternc-nginx-ssl-install $(DESTDIR)/usr/lib/alternc/install.d/
install -m 0644 -o root -g root nginx-ssl-letsencrypt.conf $(DESTDIR)/etc/apache2/conf-enabled/
install -m 0644 -o root -g root alternc-nginx-ssl-empty.conf $(DESTDIR)/etc/apache2/mods-available/
3 changes: 3 additions & 0 deletions alternc-nginx-ssl-empty.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
##Workaround ssl activation from alternc.install
##Providean empty content
##We can't use /dev/null as is not regular file
8 changes: 8 additions & 0 deletions alternc-nginx-ssl-install
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
# Purpose of file: Install nginx conf files.
# ----------------------------------------------------------------------

if [ "$1" = "apache2" ]
then
#Workaround alternc.install
#Pprevent a2endmo ssl
a2dismod ssl
ln -s /etc/apache2/mods-available/alternc-nginx-ssl-empty.conf /etc/apache2/mods-enabled/ssl.load
fi

if [ "$1" = "upgrade" ]
then
echo "Nginx Configuration:"
Expand Down
1 change: 1 addition & 0 deletions debian/dirs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/var/www/letsencrypt/.well-known/acme-challenge
/usr/lib/alternc/install.d
/etc/apache2/conf-enabled
/etc/apache2/mods-available/
/var/cache/nginx-ssl