아파치 설정에 대해 질문있습니다.
글쓴이: moonrepeat / 작성시간: 화, 2004/08/17 - 8:19오후
현재 아파치를 돌리고 있는데
(아파치 버젼은 1.3.31-2 입니다.)
제가 의도한데로 작동하지 않아서 질문드립니다.
먼저 홈페이지 디렉토리는
DocumentRoot /www/home
로 설정했습니다.
그리고 여기에는 /www/home/music이라는 디렉토리가 있고
이안에
ln -s /home/music /www/home/music/pds
로 링크를 걸었습니다.
/home/music 은 퍼미션이 755로 주어져 있고 사용자는 repeat으로
설정 되어있습니다.drwxrwxr-x 27 repeat family 4096 Aug 14 18:38 music
아파치 유저는 www-data 로 되어 있습니다.
그런데 웹브라우져를 통해 접속해보면 http://localhost/music/pds/index.html
퍼미션 에러가 뜹니다.
(You don't have permission to access /music/pds/ on this server)
접속가능하게 만들고 싶은데 해결방법이 없을까요?
(httpd.conf도 같이 올릴려고 했는데 너무 양이 많아서....)
Forums:


Re: 아파치 설정;
symbolic link 의 경우,
해당 Directory Directive 의 Options 에 FollowSymLinks 를 추가해 줘야 합니다.
(철자가 정확하지 않을지도 ㅡㅡ;)
httpd.conf가 없어서 대략 모르겠습니다만(주석만 떼서 올리셔도 알
httpd.conf가 없어서 대략 모르겠습니다만(주석만 떼서 올리셔도 알분은 다 알터인데)
FollowSymLinks였던가? 지시자가 있어야 할 겁니다.
힘없는자의 슬픔
현재 설정부분이 이렇게 되어 있습니다[code:1]<Di
현재 설정부분이 이렇게 되어 있습니다
<Directory /www/home/music/> # # This may also be "None", "All", or any combination of "Indexes", # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews". # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # Options Indexes Includes FollowSymLinks MultiViews # # This controls which options the .htaccess files in directories can # override. Can also be "All", or any combination of "Options", "FileInfo", # "AuthConfig", and "Limit" # AllowOverride None # # Controls who can get stuff from this server. # Order allow,deny Allow from all </Directory>/www/home/music/ 이하의 디렉토리는 파일목록을 보기 쉡게할려고
Indexes 옵션을 주었습니다.
그런데 여저히 퍼미션 에러는 나오는 군요.
삽질은 계속되어야 한다....... 쭉.........
설정은 정상적으로 하신 것 같은데..혹시나 해서 테스트 해 보니
설정은 정상적으로 하신 것 같은데..
혹시나 해서 테스트 해 보니 잘 작동하네요.
역시나 httpd.conf 를 올려보셔야 할 듯..
첨부로 올리시면 되지 않을 까요?
사용자가 바꾸어 나가자!!
= about me =
http://wiki.kldp.org/wiki.php/offree , DeVlog , google talk : offree at gmail.com
일단 httpd.conf 입니다 (주석 부분 삭제....)[code:
일단 httpd.conf 입니다 (주석 부분 삭제....)
ServerType standalone ServerRoot /etc/apache LockFile /var/lock/apache.lock PidFile /var/run/apache.pid ScoreBoardFile /var/run/apache.scoreboard #ResourceConfig /etc/apache/srm.conf #AccessConfig /etc/apache/access.conf Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 MinSpareServers 5 MaxSpareServers 10 StartServers 5 MaxClients 150 MaxRequestsPerChild 100 #Listen 3000 #Listen 12.34.56.78:80 #BindAddress * Include /etc/apache/modules.conf <IfModule mod_status.c> ExtendedStatus On </IfModule> Port 80 User www-data Group www-data ServerAdmin webmaster@localhost #ServerName new.host.name DocumentRoot /www/home <Directory /> Options SymLinksIfOwnerMatch AllowOverride None </Directory> <Directory /www/home/music/> Options Indexes Includes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> <IfModule mod_userdir.c> UserDir public_html <Directory /www/home/music/> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS PROPFIND> Order allow,deny Allow from all </Limit> <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> Order deny,allow Deny from all </Limit> </Directory> </IfModule> <IfModule mod_dir.c> DirectoryIndex index.html index.htm index.shtml index.cgi </IfModule> AccessFileName .htaccess <Files ~ "^\.ht"> Order allow,deny Deny from all </Files> #CacheNegotiatedDocs UseCanonicalName Off TypesConfig /etc/mime.types DefaultType text/plain <IfModule mod_mime_magic.c> MIMEMagicFile /usr/share/misc/file/magic.mime </IfModule> HostnameLookups Off ErrorLog /var/log/apache/error.log LogLevel warn LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{forensic-id}n\" %T %v" full LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{forensic-id}n\" %P %T" debug LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{forensic-id}n\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b \"%{forensic-id}n"" forensic LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent #CustomLog /var/log/apache/access.log common #CustomLog /var/log/apache/referer.log referer #CustomLog /var/log/apache/agent.log agent CustomLog /var/log/apache/access.log combined <IfModule mod_log_forensic.c> ForensicLog /var/log/apache/forensic.log </IfModule> <IfModule mod_backtrace.c> EnableExceptionHook On # BacktraceLog /var/log/apache/backtrace.log </IfModule> <IfModule mod_whatkilledus.c> EnableExceptionHook On # WhatKilledUsLog /var/log/apache/whatkilledus.log </IfModule> ServerSignature On #ServerTokens Full <IfModule mod_alias.c> Alias /icons/ /usr/share/apache/icons/ <Directory /usr/share/apache/icons> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> Alias /images/ /usr/share/images/ <Directory /usr/share/images> Options MultiViews AllowOverride None Order allow,deny Allow from all </Directory> </IfModule> <IfModule mod_alias.c> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory /usr/lib/cgi-bin/> AllowOverride None Options ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> </IfModule> <IfModule mod_autoindex.c> IndexOptions FancyIndexing NameWidth=* AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip AddIconByType (TXT,/icons/text.gif) text/* AddIconByType (IMG,/icons/image2.gif) image/* AddIconByType (SND,/icons/sound2.gif) audio/* AddIconByType (VID,/icons/movie.gif) video/* AddIcon /icons/binary.gif .bin .exe AddIcon /icons/binhex.gif .hqx AddIcon /icons/tar.gif .tar AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip AddIcon /icons/a.gif .ps .ai .eps AddIcon /icons/layout.gif .html .shtml .htm .pdf AddIcon /icons/text.gif .txt AddIcon /icons/c.gif .c AddIcon /icons/p.gif .pl .py AddIcon /icons/f.gif .for AddIcon /icons/dvi.gif .dvi AddIcon /icons/uuencoded.gif .uu AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl AddIcon /icons/tex.gif .tex AddIcon /icons/bomb.gif core AddIcon /icons/deb.gif .deb AddIcon /icons/back.gif .. AddIcon /icons/hand.right.gif README AddIcon /icons/folder.gif ^^DIRECTORY^^ AddIcon /icons/blank.gif ^^BLANKICON^^ DefaultIcon /icons/unknown.gif #AddDescription "GZIP compressed document" .gz #AddDescription "tar archive" .tar #AddDescription "GZIP compressed tar archive" .tgz ReadmeName README.html HeaderName HEADER.html IndexIgnore .??* *~ *# HEADER.html HEADER.txt RCS CVS *,v *,t </IfModule> <IfModule mod_mime.c> AddEncoding x-compress Z AddEncoding x-gzip gz tgz AddLanguage kr .kr AddLanguage da .dk AddLanguage nl .nl AddLanguage en .en AddLanguage et .ee AddLanguage fr .fr AddLanguage de .de AddLanguage el .el AddLanguage it .it AddLanguage ja .ja AddCharset ISO-2022-JP .jis AddLanguage pl .po AddCharset ISO-8859-2 .iso-pl AddLanguage pt .pt AddLanguage pt-br .pt-br AddLanguage lb .lu AddLanguage ca .ca AddLanguage es .es AddLanguage sv .se AddLanguage cs .cz <IfModule mod_negotiation.c> LanguagePriority kr en da nl et fr de el it ja pl pt pt-br lb ca es sv </IfModule> #AddType application/x-httpd-php3 .php3 #AddType application/x-httpd-php3-source .phps AddType application/x-httpd-php .php .html .inc .htm AddType application/x-httpd-php-source .phps AddType application/x-tar .tgz AddType image/bmp .bmp AddType text/x-hdml .hdml #AddHandler cgi-script .cgi .sh .pl <IfModule mod_include.c> AddType text/html .shtml AddHandler server-parsed .shtml </IfModule> #AddHandler send-as-is asis #AddHandler imap-file map #AddHandler type-map var </IfModule> AddDefaultCharset EUC-KR #MetaDir .web #MetaSuffix .meta #ErrorDocument 500 "The server made a boo boo. #ErrorDocument 404 /missing.html #ErrorDocument 404 /cgi-bin/missing_handler.pl #ErrorDocument 402 http://some.other_server.com/subscription_info.html <IfModule mod_setenvif.c> BrowserMatch "Mozilla/2" nokeepalive BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 BrowserMatch "RealPlayer 4\.0" force-response-1.0 BrowserMatch "Java/1\.0" force-response-1.0 BrowserMatch "JDK/1\.0" force-response-1.0 </IfModule> <IfModule mod_perl.c> <IfModule mod_alias.c> Alias /perl/ /var/www/perl/ </IfModule> <Location /perl> SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI </Location> </IfModule> #LoadModule put_module modules/mod_put.so #AddModule mod_put.c #<IfModule mod_alias.c> # Alias /upload /tmp #</IfModule> #<Location /upload> # EnablePut On # AuthType Basic # AuthName Temporary # AuthUserFile /etc/apache/passwd # EnableDelete Off # umask 007 # <Limit PUT> # require valid-user # </Limit> #</Location> #<Location /server-status> # SetHandler server-status # Order deny,allow # Deny from all # Allow from .your_domain.com #</Location> #<Location /server-info> # SetHandler server-info # Order deny,allow # Deny from all # Allow from .your_domain.com #</Location> <IfModule mod_alias.c> Alias /doc/ /usr/share/doc/ </IfModule> <Location /doc> order deny,allow deny from all allow from 127.0.0.0/255.0.0.0 Options Indexes FollowSymLinks MultiViews </Location> #<Location /cgi-bin/phf*> # Deny from all # ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi #</Location> <IfModule mod_proxy.c> #ProxyRequests On #<Directory proxy:*> # Order deny,allow # Deny from all # Allow from .your_domain.com #</Directory> #ProxyVia On #CacheRoot "/var/cache/apache" #CacheSize 5 #CacheGcInterval 4 #CacheMaxExpire 24 #CacheLastModifiedFactor 0.1 #CacheDefaultExpire 1 #NoCache a_domain.com another_domain.edu joes.garage_sale.com </IfModule> #NameVirtualHost 12.34.56.78:80 #NameVirtualHost 12.34.56.78 #<VirtualHost ip.address.of.host.some_domain.com> # ServerAdmin webmaster@host.some_domain.com # DocumentRoot /www/docs/host.some_domain.com # ServerName host.some_domain.com # ErrorLog logs/host.some_domain.com-error.log # CustomLog logs/host.some_domain.com-access.log common #</VirtualHost> #<VirtualHost _default_:*> #</VirtualHost> Include /etc/apache/conf.d삽질은 계속되어야 한다....... 쭉.........
그리고 각종 정보.....일단 아파치의 www 폴더[code:
그리고 각종 정보.....
일단 아파치의 www 폴더
그리고 링크 되어 있는 폴더 정보
삽질은 계속되어야 한다....... 쭉.........
댓글 달기