답변 4개
이미지 경로 보니 500 에러가 발생합니다.
rewrite 설정에 문제가 있는거 같은데 에러로그를 먼저 살펴보시는게 나을듯 싶습니다.
그리고 그누보드 짧은 주소 설정에 있는 RewriteRule 을 사용 안하시는거 같은데,
Virtualhost 설정에 있는거는 지우시고
</p>
<p>#### 그누보드5 rewrite BEGIN #####
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^content/([0-9a-zA-Z_]+)$ bbs/content.php?co_id=$1&rewrite=1 [QSA,L]
RewriteRule ^content/([^/]+)/$ bbs/content.php?co_seo_title=$1&rewrite=1 [QSA,L]
RewriteRule ^rss/([0-9a-zA-Z_]+)$ bbs/rss.php?bo_table=$1 [QSA,L]
RewriteRule ^([0-9a-zA-Z_]+)$ bbs/board.php?bo_table=$1&rewrite=1 [QSA,L]
RewriteRule ^([0-9a-zA-Z_]+)/([^/]+)/$ bbs/board.php?bo_table=$1&wr_seo_title=$2&rewrite=1 [QSA,L]
RewriteRule ^([0-9a-zA-Z_]+)/write$ bbs/write.php?bo_table=$1&rewrite=1 [QSA,L]
RewriteRule ^([0-9a-zA-Z_]+)/([0-9]+)$ bbs/board.php?bo_table=$1&wr_id=$2&rewrite=1 [QSA,L]
RewriteRule ^robots.txt$ /robots.php [L]
</IfModule>
#### 그누보드5 rewrite END #####
이걸 루트디렉토리쪽에 .htaccess 로 넣으시거나 Virtualhost 에 넣어보세요.
답변에 대한 댓글 2개
댓글을 작성하려면 로그인이 필요합니다.
간장게장같은남자님~~
Order allow,deny > Order deny,allow 로 변경은 안되구요~~
아파치 conf에서 AllowOverride All 로 하구~~
data 폴더의 .htaccess 를 Require all granted 로 했는데 모두 허용이라 .htaccess 를 삭제한것과 같은 것이 아니지요~~ 짧은 주소가 되고 이미지가 뜨긴 뜨지만 보안과 관련된것 아닌가요~~~
하여간 감사, 감사합니다~`
댓글을 작성하려면 로그인이 필요합니다.
간장게장같은남자님~~~아래와 같은 에러로그가 있습니다
[Fri Aug 30 21:04:21.448433 2024] [core:alert] [pid 13848:tid 1176] [client 218.54.246.105:52049] D:/Apache24/htdocs/data/.htaccess: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration, referer: https://dawayo.net/gallery/1
[Fri Aug 30 21:04:21.448433 2024] [core:alert] [pid 13848:tid 1164] [client 218.54.246.105:52053] D:/Apache24/htdocs/data/.htaccess: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration, referer: https://dawayo.net/gallery/1
[Fri Aug 30 21:04:27.935457 2024] [core:alert] [pid 13848:tid 1164] [client 218.54.246.105:52059] D:/Apache24/htdocs/data/.htaccess: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration, referer: https://dawayo.net/bbs/board.php?bo_table=gallery
[Fri Aug 30 21:05:22.077358 2024] [core:alert] [pid 13848:tid 1176] [client 218.54.246.105:52062] D:/Apache24/htdocs/data/.htaccess: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration, referer: https://dawayo.net/bbs/board.php?bo_table=gallery
[Fri Aug 30 21:05:22.996459 2024] [core:alert] [pid 13848:tid 1224] [client 218.54.246.105:52070] D:/Apache24/htdocs/data/.htaccess: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration, referer: https://dawayo.net/bbs/board.php?bo_table=gallery
[Fri Aug 30 21:05:24.534494 2024] [core:alert] [pid 13848:tid 1176] [client 218.54.246.105:52071] D:/Apache24/htdocs/data/.htaccess: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration, referer: https://dawayo.net/gallery/1
[Fri Aug 30 21:05:24.535538 2024] [core:alert] [pid 13848:tid 1224] [client 218.54.246.105:52074] D:/Apache24/htdocs/data/.htaccess: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration, referer: https://dawayo.net/gallery/1
data 폴더의 .htaccess 가 아래와 같습니다
<FilesMatch "\.(htaccess|htpasswd|[Pp][Hh][Pp]|[Pp][Hh][Tt]|[Pp]?[Hh][Tt][Mm][Ll]?|[Ii][Nn][Cc]|[Cc][Gg][Ii]|[Pp][Ll]|[Pp][Hh][Aa][Rr])">
Order allow,deny
Deny from all
</FilesMatch>
RedirectMatch 403 /session/.*
.htaccess 를 삭제하면 짧은주소는 되는데 삭제하면 안되겠죠~~ 뭐가 문제일까요~? 인터넷 검색해보면 이리저리 바꿔봐도 안되고 임의로 수정이나 삭제하면 안될듯하구~`
답변에 대한 댓글 1개
해당문서의 오류5 부분을 설정해보시는게 도움이 되실 것 같습니다.
Order allow,deny > Order deny,allow 로 변경해보시구요.
댓글을 작성하려면 로그인이 필요합니다.
이미지 요청을 별도로 처리하는 RewriteRule을 추가해 보시겠어요..
RewriteRule ^images/(.*)$ images/$1 [L]
답변에 대한 댓글 1개
<VirtualHost *:80>
ServerAdmin mathmax @ naver.com
DocumentRoot "${SRVROOT}/htdocs"
ServerName dawayo.net
ServerAlias www.dawayo.net
ErrorLog "logs/dawayo.net-error.log"
CustomLog "logs/dawayo.net-access.log" common
RewriteEngine On
RewriteCond %{https} off
RewriteRule . https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
RewriteRule ^images/(.*)$ images/$1 [L]
</VirtualHost>
설정했는데 아직도 엑박이네요~`
RewriteRule ^images/(.*)$ images/$1 [L] 를 혹시다른 곳에 설정하나요~?
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
RewriteRule ^robots.txt$ /robots.php [L] 은 없습니다만~~` 그런데 마지막줄은 rewrite와는 관계 없을듯한데~~ 그리고 Virtualhost 는 막았습니다~~ 그래도 안되네요~`
아파치 오류logs 에는 특별한 로그는 없구요~`아파치 conf 에서
<Directory "${SRVROOT}/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
##########################
AllowOverride None
##########################
#
# Controls who can get stuff from this server.
#
Require all granted
</Directory>
##########################
AllowOverride None
##########################
하면 이미지가 뜨고 짧은 주소는 안되고
##########################
AllowOverride All
##########################
은 짧은 주소는 되고 이미지는 안뜨네요~~
즉,,,AllowOverride 의 설정이 문제인듯한데~~`모르겠습니다