अपाचे पर वर्चुअल होस्ट तक पहुंच प्राप्त न करें


2

मैंने Apache का उपयोग करके एक वर्चुअल होस्ट बनाया। साधारण 127.0.0.1 या localhost काम करता है, यह एक सफल उत्पादन मिलता है। लेकिन वर्चुअल होस्ट के नाम के इनपुट पर मुझे एक त्रुटि संदेश मिलता है।

Forbidden

You don't have permission to access / on this server.

यहाँ मेरी सेटिंग्स हैं:

मेजबान

127.0.0.1   example.com
127.0.0.1   www.example.com
255.255.255.255 broadcasthost
::1             localhost 

httpd.conf

[...]
# Virtual hosts
Include /private/etc/apache2/extra/httpd-vhosts.conf
[...]

httpd-vhosts.conf

<VirtualHost *:80>
ServerName localhost
DocumentRoot "/Library/WebServer/Documents"
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "/Library/Webserver/Documents/example/"
    ServerName example.com
    ServerAlias www.example.com
    ErrorLog "/Library/Webserver/Documents/enetworks/example.com-error_log"
    CustomLog "/Library/Webserver/Documents/enetworks/example.com-access_log" common
</VirtualHost>

example.com-error_log

127.0.0.1:50922] AH01630: client denied by server configuration: /Library/Webserver/Documents/example/

कोई मुझे कह सकता है, जहां समस्या है? धन्यवाद, ;)।

हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.