Skip to content

Commit

Permalink
fix: Provide a dummy ssl module
Browse files Browse the repository at this point in the history
* Workaround alternc.install behavior
* Force an empty ssl apache configuration to prevent conflict between apache and nginx

Fix #7
Reference AlternC/AlternC#561
  • Loading branch information
camlafit committed May 29, 2024
1 parent 8d75995 commit eb69139
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
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

0 comments on commit eb69139

Please sign in to comment.