change nginx port to 8080 so it can coexist with apache
This commit is contained in:
parent
eb0ef58d96
commit
76ff12c374
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user