Xampp: Linux에서는 오류 403이 발생하지만 Windows에서는 발생하지 않습니다.

Xampp: Linux에서는 오류 403이 발생하지만 Windows에서는 발생하지 않습니다.

내 컴퓨터에 Ubuntu와 XAMPP를 설치했지만 웹 서버를 시작하고 htt://localhost/webname(webname은 htdocs 내부의 폴더 이름)으로 이동하면 오류 403이 발생합니다.

webname 안에 .htaccess가 다음과 같습니다.

# Created on: 03/01/2012
# Author: **********

# Redirect every request to index.php
RewriteEngine on 
RewriteBase /
RewriteRule ^$ /webname/public/index.php
RewriteRule ^about/?$ /webname/public/about.php
RewriteRule ^changelog/?$ /webname/public/changelog.php
RewriteRule ^home/?$ /webname/public/home.php
RewriteRule ^friends/?$ /webname/public/friends.php
RewriteRule ^(\w+)/?$ /webname/public/home.php?user=$1  
RewriteRule ^login/?$ /webname/public/index.php?show=login
RewriteRule ^signup/?$ /webname/public/index.php?show=signup
RewriteRule ^profile/(\w+)/?$ /webname/public/profile.php?user=$1

# Rewrite www.webname.com -> webname.com
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

# Disable directory listing for all the subdirectories
Options -Indexes

Windows에서는 모든 것이 잘 작동하지만 Ubuntu에서는 이 오류가 계속 발생합니다.

도와 줘서 고맙다.

답변1

권한 문제였습니다. 문제를 해결하려면 변경해야했습니다.

관련 정보