.htaccess 파일이 사라집니다
왜이러는지 모르겟네요
mysql php연결안되서 연결하고
gd없어서 설치하고
이제 되나 싶었는데
.htaccess 파일이 자꾸 없어집니다.
에디트플러스로 저장해도 없어지길래..
하드에 복사해놓고 .httaccess 파일을 업로드했는데 올리면 0.5초있다가 다시 없어집니다.
mod rewrite 설치된거 확인했구요. module검사해도 설치되었다고 나오고 phpinfo에서도 설치되었다고나옵니다
ls -a 해도 안보입니다.
그냥 깔끔히 사라저 버립니다.
다른 서버는 다 갠찮은데 지금 설정하는 서버만 이래요 이거 아시는 분 도와주세요
mysql php연결안되서 연결하고
gd없어서 설치하고
이제 되나 싶었는데
.htaccess 파일이 자꾸 없어집니다.
에디트플러스로 저장해도 없어지길래..
하드에 복사해놓고 .httaccess 파일을 업로드했는데 올리면 0.5초있다가 다시 없어집니다.
mod rewrite 설치된거 확인했구요. module검사해도 설치되었다고 나오고 phpinfo에서도 설치되었다고나옵니다
ls -a 해도 안보입니다.
그냥 깔끔히 사라저 버립니다.
다른 서버는 다 갠찮은데 지금 설정하는 서버만 이래요 이거 아시는 분 도와주세요
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 8개
conf 화일 여셔서 ...
설정 부분에서 .htaccess 업로드 금지 화일로 설정되어 있는지 확인해 보십시요.
설정상에 아마도 업로드 금지 화일로 설정 되어 있는듯 합니다.
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
웹에서 접근을 제한할 경우 설정을 하는 부분입니다...
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
특정 파일의 접근제어 설정(Satisfy All은 Allow from에 해당하는 경우에 허용하는데, 이 경우 Allow from이 지정되지 않았으므로 모두 Deny됨)
즉 웹페이지에서 호출을 하게 될 경우 거부 하게 되는 룰입니다.
vsftpd.conf 를 열어 보셔야 할텐데요...
지금 설명해주신 부분을 보아서는 어째든 ftp 작업상에서 안된다는 말씀 아니신가요 ?
에디트 플러스 전송도 결국은 ftp 전송이기에 ;;
vsftpd.conf 를 열어 보시면 ...
deny_file={*.mp3,*.wav,*.asf,*.wma }
저런 부분에 혹시 설정되어 있을수도 있습니다.
deny_file 안에 .htaccess 가 설정되어 있는지 확인해 보시길 부탁 드립니다.
이 이상은 좀더 자세한 상황자료를 보여 주심이 ^^;;
아니면 SELinux 가 On 상태이신건가요 ? ;;
일단 상황은 몇가지 예상은 되지만 ^^;; 직접 보지 않으니 두리뭉실 하게 답변을 드릴수 밖에 없네용...
근데 현재 사용하시는 FTP 종류가 무었인지 알수 있을까요 ?
지금까지 VSFTP 라는 가정하에 작성하였는데 -_-;;
흠 혹시 -_- .htaccess 화일이 히든 화일인건 알고 계시죠 ? ;;
혹시 설정을 안하셔서 안보이는거 아니겠죵 -_-;;
근데 ftp에서는 안보이는데 ls -a 하면 보입니다. 아깐안보였느데 만다지보니가 보여요.
파일은 존재하는거 같은데 FTP상에서는안보이구요
다른서버에서 동작하던 rewrite 를 그대로 올렸는데 동작을 안합니다 ㅠ
vi ./vsftpd.conf
# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
"./vsftpd.conf" 119L, 4435C
# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
mod_rewrite 모듈이 올라 오셨다면 ...
httppd.conf 에서
mod_rewrite 모듈을 사용할수 있게 설정해 주세용 ^^;;
http://jaesoo.kr/blog/study/?no=468 링크 참조 하세용 --ㅋㅋ;; 밤이 되어서 설명하기가 영 ;;;
좋은꿈 꾸세요~~~~~~~~~
httpd.conf 만 100번은 수정한거같네요.
DocumentRoot "/home/playcast/"
에서 끝에 슬러시 뺴고 DocumentRoot "/home/playcast"
<Directory "/home/playcast/www">
Options FollwSymLinks
AllowOverride FileInfo
</Directory>
아휴 이걸로6시간 걸리다닝 ㅠ