【发布时间】:2018-03-05 00:57:20
【问题描述】:
Localhost 说 - 它可以工作,但是这些 localhost/phpmyadmin 和 localhost/~username:
Safari 无法连接服务器
我不使用 MAMP。我另外安装了 MySQL,我下载了 Phpmyadmin 并将这个文件夹放到了 Sites 中。
我的 httpd-vhosts.confg 有
# Virtual Hosts
#
# Required modules: mod_log_config
# 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.4/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.
#
# 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 *:80>
DocumentRoot "/Users/bereshka/Sites/parustrans"
ServerName parustrans.local
</VirtualHost>
我的主人有
##
# 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
127.0.0.1 parustrans.local
my users/bereshka.conf has
<Directory "/Users/bereshka/Sites/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Require all granted
</Directory>
我的 httpd.confg 有
【问题讨论】:
-
我的 httpd-vhosts.confg 有
-
你的问题不是很清楚,目前的状态很可能会被搁置。一般来说,如果
http://localhost有效,那么其他两个地址(仍在http://localhost/)应该做一些事情。 “不起作用”是什么意思 - 您是否收到 404 错误? -
请阅读有关如何使用本网站的帮助部分。这不是一个论坛,您不会在 answers 上发布更多信息。您创建一个问题并包含所有信息。
-
好的,抱歉。我编辑了那个
-
@halfer 我想我搞砸了 apache 或/和主机。这两个链接 localhost/phpmyadmin 和 localhost/~bereshka/ 显示此错误 Safari Can't connect with Server
标签: mysql macos apache localhost