change nginx port to 8080 so it can coexist with apache

This commit is contained in:
Keanu Taufan 2024-10-04 14:56:51 +07:00
parent eb0ef58d96
commit 76ff12c374
No known key found for this signature in database
GPG Key ID: 1952D665A3A51BE0
8 changed files with 19 additions and 21 deletions

View File

@ -7,10 +7,10 @@ mv sayur_webserver_nginx /var/www/sayur
service nginx start
service php7.2-fpm start
cat > /etc/nginx/conf.d/sayur.conf <<EOL
cat > /etc/nginx/sites-enabled/default <<EOL
server {
listen 80;
listen [::]:80;
listen 8080;
listen [::]:8080;
root /var/www/sayur;
index index.php;

View File

@ -13,10 +13,10 @@ log_format jarkom_log '[\$time_local] Jarkom Node \$modified_hostname Access fro
EOL
cat > /etc/nginx/conf.d/sayur.conf <<EOL
cat > /etc/nginx/sites-enabled/default <<EOL
server {
listen 80;
listen [::]:80;
listen 8080;
listen [::]:8080;
root /var/www/sayur;
index index.php;

View File

@ -7,10 +7,10 @@ mv sayur_webserver_nginx /var/www/sayur
service nginx start
service php7.2-fpm start
cat > /etc/nginx/conf.d/sayur.conf <<EOL
cat > /etc/nginx/sites-enabled/default <<EOL
server {
listen 80;
listen [::]:80;
listen 8080;
listen [::]:8080;
root /var/www/sayur;
index index.php;

View File

@ -13,10 +13,10 @@ log_format jarkom_log '[\$time_local] Jarkom Node \$modified_hostname Access fro
EOL
cat > /etc/nginx/conf.d/sayur.conf <<EOL
cat > /etc/nginx/sites-enabled/default <<EOL
server {
listen 80;
listen [::]:80;
listen 8080;
listen [::]:8080;
root /var/www/sayur;
index index.php;

View File

@ -4,8 +4,6 @@ curl -o vitamin.zip https://fs.taufan.dev/public/jarkom/vitamin.brokoli.yyy.com.
unzip vitamin.zip
mv vitamin.brokoli.yyy.com /var/www/vitamin.brokoli.f01
service nginx stop
service php7.2-fpm stop
service apache2 start
cat > /etc/apache2/sites-available/vitamin.conf <<EOL

View File

@ -6,7 +6,7 @@ cat > /etc/apache2/sites-available/ip.conf <<EOL
ServerAlias 10.67.4.2
RewriteEngine On
RewriteRule ^(.*)$ http://www.brokoli.f01.com$1 [R=301,L]
RewriteRule ^(.*)$ http://www.brokoli.f01.com:8080$1 [R=301,L]
ErrorLog \${APACHE_LOG_DIR}/redirect_error.log
CustomLog \${APACHE_LOG_DIR}/redirect_access.log combined

View File

@ -7,10 +7,10 @@ mv sayur_webserver_nginx /var/www/sayur
service nginx start
service php7.2-fpm start
cat > /etc/nginx/conf.d/sayur.conf <<EOL
cat > /etc/nginx/sites-enabled/default <<EOL
server {
listen 80;
listen [::]:80;
listen 8080;
listen [::]:8080;
root /var/www/sayur;
index index.php;

View File

@ -13,10 +13,10 @@ log_format jarkom_log '[\$time_local] Jarkom Node \$modified_hostname Access fro
EOL
cat > /etc/nginx/conf.d/sayur.conf <<EOL
cat > /etc/nginx/sites-enabled/default <<EOL
server {
listen 80;
listen [::]:80;
listen 8080;
listen [::]:8080;
root /var/www/sayur;
index index.php;