XF 2.0 Hi. Please help me for my goal.

dadpuberty

Member
Hi. Please help me for my goal.
domain: https://guf.co.kr


Installation Configuration:
Linux (ubuntu) + Nginx + MariaDB + PHP7
wordpress + XenForo combination
I want to connect to xpress (xlink).

I will explain the process of installation.

(xenforo install) -> xlink install -> php install -> php install -> MariaDB install -> wordpress install lemp stac -> ubuntu server install -> xlink install - > xpress install = end!

WordPress, xenforo works when run separately.
But do not link it with xpress (xlink).

Please let me know what you need to do to make the two work smoothly.

In my opinion, etc / nginx / sites-available / default
It seems to be the problem that the setting is based on wordpress.
During the above process, the installation of ssl is omitted.

The version I installed was 2.0, but the final goal is the installation of version 2.1.

default content

####################################
##### HTTP ##########
####################################

###### HTTP www.guf.co.kr
server {
listen 80;
listen [::]:80;
server_name www.guf.co.kr;

include /etc/nginx/snippets/letsencrypt.conf; ### .well-know/acme-challenge 폴더위치를 알리는 location 블록

location / {
return 301 https://www.guf.co.kr$request_uri; ###### HTTPS www로 리다이렉팅
}
}

###### HTTP
server {
listen 80;
listen [::]:80 default_server ipv6only=on;
server_name guf.co.kr;

include /etc/nginx/snippets/letsencrypt.conf; ### .well-know/acme-challenge 폴더위치를 알리는 location 블록

location / {
return 301 https://guf.co.kr$request_uri; ###### HTTPS로 리다이렉팅
}
}

####################################
##### HTTPS ##########
####################################


###### HTTPS www.
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name www.guf.co.kr;

ssl_certificate /etc/letsencrypt/live/guf.co.kr/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/guf.co.kr/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/guf.co.kr/fullchain.pem;
include /etc/nginx/snippets/ssl.conf; ### SSL 보안설정 ssl.conf 파일 위치

location / {
return 301 https://guf.co.kr$request_uri; ###### HTTPS로리다이렉팅
}
}

###### HTTPS 메인도메인(최종목적지)
server {
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server ipv6only=on;
server_name guf.co.kr;

ssl_certificate /etc/letsencrypt/live/guf.co.kr/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/guf.co.kr/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/guf.co.kr/fullchain.pem;
include /etc/nginx/snippets/ssl.conf; ### SSL 보안설정내용경로

root /var/www/guf;
index index.php index.html index.htm index.nginx-debian.html;

location / {
try_files $uri $uri/ =404;
# 워드프레스 고유주소(permalink)를 기본(plain)에서 글이름(post name)등 다른걸로 바꾸었을 때 기존 글들이 404페이지가 되는 것 우회
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
}

location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_read_timeout 300;
}

location ~ /\.ht {
deny all;
}
}




################## HTTP www.
server {
listen 80;
listen [::]:80;
server_name www.guf.kr;
location / {
return 301 https://guf.co.kr$request_uri; ### https://guf.kr 로 리다이렉팅
}
}

################## HTTP www.
server {
listen 80;
listen [::]:80;
server_name guf.kr;
location / {
return 301 https://guf.co.kr$request_uri; ### https://guf.kr 로 리다이렉팅
}
}
 
Top Bottom