From 23970290363626b905ff59e7a5ad150570158fb0 Mon Sep 17 00:00:00 2001 From: Robert Date: Sat, 23 Dec 2023 10:03:15 -0500 Subject: [PATCH] nginx unit --- protected/README.MD | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/protected/README.MD b/protected/README.MD index b92469b..4f1e7ff 100644 --- a/protected/README.MD +++ b/protected/README.MD @@ -91,6 +91,8 @@ $ composer install ## Install web server apache2 or nginx +https://unit.nginx.org/ (looks neat) + Pick just one ``` @@ -101,6 +103,9 @@ $ sudo apt-get install libapache2-mod-php8.3 $ sudo nano /etc/apache2/sites-available/000-default.conf ServerAdmin webmaster@localhost + # Replace example.com with your actual domain or IP address: + ServerName example.com + ServerAlias www.example.com DocumentRoot /var/www/cms/public @@ -129,9 +134,9 @@ $ sudo apt-get install nginx $ sudo apt-get install php8.3-fpm # Configure nginx for cms $ sudo nano /etc/nginx/sites-available/cms -# Replace your_domain.com with your actual domain or IP address: server { listen 80; + # Replace your_domain.com with your actual domain or IP address: server_name your_domain.com; root /var/www/cms/public;