구체적으로 상세한답변 부탁드립니다.
ngnix 서버입니다.
어느파일에서 어느부분을 추가 혹은 삭제해야 되나요 ?
자주묻는질문 답변을 보고는 도저희 정상작동안됩니다. 휴
구체적으로 상세한답변 부탁드립니다.
ngnix 서버입니다.
어느파일에서 어느부분을 추가 혹은 삭제해야 되나요 ?
자주묻는질문 답변을 보고는 도저희 정상작동안됩니다. 휴
도메인 연결을 위해 nginx 설정파일에
server {
// 여기에 추가하시면 됩니다
}
https://www.minitalk.io/ko/forum/help/view/111
위의 질문에 전체 코드가 포함되어 있는 질문이 있으니 질문과 답변을 참고하시기 바랍니다.
또한, 아래의 주소의 FAQ 문서를 업데이트해두었습니다.
server {
listen 80;
server_name yourdomain.com
root /home/user_id/public_html
index index.php
}server
{
listen 80;
server_name abcd.com www.abcd.com;
index index.php index.html index.htm default.php default.htm default.html;
root /web/wwwroot/abcd;
#SSL-START SSL
#error_page 404/404.html;
#SSL-END
#ERROR-PAGE-START
#error_page 404 /404.html;
#error_page 502 /502.html;
#ERROR-PAGE-END
#PHP-INFO-START PHP
include enable-php-74.conf;
#PHP-INFO-END
#REWRITE-START URL
include /www/server/panel/vhost/rewrite/abcd.com.conf;
#REWRITE-END
#
location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)
{
return 404;
}
#
location ~ \.well-known{
allow all;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
error_log /dev/null;
access_log /dev/null;
}
location ~ .*\.(js|css)?$
{
expires 12h;
error_log /dev/null;
access_log /dev/null;
}
access_log /www/wwwlogs/abcd.com.log;
error_log /www/wwwlogs/abcd.com.error.log;
}server
{
listen 80;
server_name abcd.com www.abcd.com;
index index.php index.html index.htm default.php default.htm default.html;
root /web/wwwroot/abcd;
#SSL-START SSL
#error_page 404/404.html;
#SSL-END
#ERROR-PAGE-START
#error_page 404 /404.html;
#error_page 502 /502.html;
#ERROR-PAGE-END
#PHP-INFO-START PHP
include enable-php-74.conf;
#PHP-INFO-END
#REWRITE-START URL
include /www/server/panel/vhost/rewrite/abcd.com.conf;
#REWRITE-END
#
location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)
{
return 404;
}
#
location ~ \.well-known{
allow all;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
error_log /dev/null;
access_log /dev/null;
}
location ~ .*\.(js|css)?$
{
expires 12h;
error_log /dev/null;
access_log /dev/null;
}
access_log /www/wwwlogs/abcd.com.log;
error_log /www/wwwlogs/abcd.com.error.log;
location /미니톡경로
{
if (!-e $request_filename) {
rewrite ^/admin/([^\/]+)/?$ /admin/index.php?menu=$1 break;
}
rewrite ^/api/index.php$ /api/index.php?$query_string last;
rewrite ^/api/([^\/]+)$ /api/index.php?api=$1&idx=$2&$query_string last;
rewrite ^/api/([^\/]+)/?([^\/]+)?$ /api/index.php?api=$1&idx=$2&$query_string last;
rewrite ^/process/([^\/]+)$ /process/index.php?action=$1&$query_string last;
rewrite ^/process/([^\/]+)/?(.*?)?$ /process/index.php?action=$1&extras=$2&$query_string last;
}
location ~* \.(eot|otf|ttf|woff|woff2)$
{
add_header Access-Control-Allow-Origin *;
}
}