Add start-apache

This commit is contained in:
2024-02-20 17:58:10 +08:00
parent 8674b4dfde
commit 7e6ec3293a

4
start-apache Normal file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env bash
sed -i "s/Listen 80/Listen ${PORT:-80}/g" /etc/apache2/ports.conf
sed -i "s/:80/:${PORT:-80}/g" /etc/apache2/sites-enabled/*
apache2-foreground