2016-09-22 2 views
0

У меня возникла небольшая проблема.Ошибка внутреннего сервера MAMP 500

Я создал два виртуальных хоста «web-backend.local» и «oplossingen.web-backend.local».

Но у меня всегда есть «500 Внутренняя ошибка сервера»

Что я делаю неправильно?

Hosts файл:

## 
# Host Database 
# 
# localhost is used to configure the loopback interface 
# when the system is booting. Do not change this entry. 
## 
127.0.0.1 localhost 
255.255.255.255 broadcasthost 
::1    localhost 
fe80::1%lo0  localhost 

# MAMP VirtualHost Mappings 
127.0.0.1 web-backend.local 
127.0.0.1 oplossingen.web-backend.local 

HTTPd-vhosts.conf:

# 
# Virtual Hosts 
# 
# If you want to maintain multiple domains/hostnames on your 
# machine you can setup VirtualHost containers for them. Most configurations 
# use only name-based virtual hosts so the server doesn't need to worry about 
# IP addresses. This is indicated by the asterisks in the directives below. 
# 
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/> 
# for further details before you try to setup virtual hosts. 
# 
# You may use the command line option '-S' to verify your virtual host 
# configuration. 

# 
# Use name-based virtual hosting. 
# 
#NameVirtualHost *:80 

# 
# VirtualHost example: 
# Almost any Apache directive may go into a VirtualHost container. 
# The first VirtualHost section is used for all requests that do not 
# match a ServerName or ServerAlias in any <VirtualHost> block. 
# 

<VirtualHost web-backend.local:* > 
DocumentRoot "/Users/yawuarsernadelgado/Documents/web-backend/cursus" 
ServerName web-backend.local 
<Directory "/Users/yawuarsernadelgado/Documents/web-backend/cursus"> 
    AllowOverride All 
    Require all granted 
    Options +Indexes 
    IndexOptions NameWidth=* 
</Directory> 
ServerAlias web-backend.local 
</VirtualHost> 

<VirtualHost oplossingen.web-backend.local:* > 
DocumentRoot "/Users/yawuarsernadelgado/Documents/web-backend/oplossingen" 
ServerName oplossingen.web-backend.local 
<Directory "/Users/yawuarsernadelgado/Documents/web-backend/oplossingen"> 
    Allow from all 
    Require all granted 
    Options +Indexes 
    IndexOptions NameWidth=* 
</Directory> 
</VirtualHost> 

ответ

0

Попробуйте посмотреть в журнале апача и журнале PHP.

-1

Удалите следующие строки из HTTPD-vhosts.conf файл из каждого виртуального хоста:

<Directory "/Users/yawuarsernadelgado/Documents/web-backend/cursus"> 
    AllowOverride All 
    Require all granted 
    Options +Indexes 
    IndexOptions NameWidth=* 
</Directory> 

Работал для меня: D

Смежные вопросы