froxlor / Froxlor-Installer

A simple shell installer for froxlor
7 stars 6 forks source link

[feature-request] Installer with nginx #6

Open rundekugel opened 2 years ago

rundekugel commented 2 years ago

Can the installer support nginx? I had to modify the config file:

sed -i -e 's|root /var/www/html|root /var/www/froxlor|g' /etc/nginx/sites-enabled/default --follow-symlinks sed -i -e 's/#location/location/g' /etc/nginx/sites-enabled/default --follow-symlinks sed -i -e 's|#location ~ \.php|location ~ \.php|g' /etc/nginx/sites-enabled/default --follow-symlinks sed -i -e 's|#\tinclude sni|\tinclude sni|g' /etc/nginx/sites-enabled/default --follow-symlinks sed -i -e 's|#\tfastcgi_pass unix|\tfastcgi_pass unix|g' /etc/nginx/sites-enabled/default --follow-symlinks sed -i -z -e 's|9000;\n\t#|9000;\n\t|g' /etc/nginx/sites-enabled/default --follow-symlinks sed -i -E 's|(^\sindex )|\1index.php |g' /etc/nginx/sites-enabled/default --follow-symlinks

and removed one '#' manually

to get froxlor running with nginx after the install script

If I use apache first and change to nginx after froxlor install script, will php /var/www/froxlor/froxlor/install/scripts/config-services.p.... configure nginx ?

d00p commented 2 years ago

Feature-request to support initial settings-adjustments by services as the webinstaller does