我自己配置了Apache,并尝试在虚拟主机上加载phpMyAdmin,但我收到了:
403禁止您无权访问此服务器上的/
我的httpd.conf
#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see 
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. …我尝试将kohana 3项目设置为虚拟主机.
配置:
<VirtualHost *:80>
  DocumentRoot "D:/Devel/matysart/matysart_dev1"
  ServerName matysart-one.local
  ServerAlias www.matysart-one.local
  DirectoryIndex index.php
</VirtualHost>
错误(403):
[client 127.0.0.1]客户端被服务器配置拒绝:D:/ Devel/matysart/matysart_dev1 /
有人可以帮忙吗?
我是新手使用XAMPP所以这对某些人来说可能很简单.
我有几个php项目,我希望能够在本地调试并在浏览器中查看(不是同时,但不必每次我想在不同的项目上工作时都要更改配置文件/复制项目文件夹).
在IIS上,您可以设置多个站点来从您的计算机上提供服务,我正在寻找XAMPP中类似的东西.使用IIS时,我在Windows主机文件中添加了多条记录,因此我可以通过键入友好的Web样式地址(如http://myproject1.dev)来访问本地托管的站点
谢谢.
我使用apache 2.4
Sat Oct 06 15:25:47.948789 2012] [authz_core:error] [pid 7580:tid 1232] [client 192.168.100.252:10153] AH01630: client denied by server configuration: C:/Program Files (x86)/Git/libexec/git-core/git-http-backend.exe
这是我的配置
<Directory "C:\git-server">
Options +ExecCGI
Allow from all
</Directory>
 <VirtualHost *:80>
  DocumentRoot  "C:/git-server"
   ServerName ****
  DirectoryIndex index.php
SetEnv GIT_PROJECT_ROOT c:/git-server
SetEnv GIT_HTTP_EXPORT_ALL
SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER
ScriptAlias /git/ "C:/Program Files (x86)/Git/libexec/git-core/git-http-backend.exe/$1"
<LocationMatch "^/.*/git-receive-pack$">
Options +ExecCGI
AuthType Basic
AuthName intranet
AuthUserFile "C:/git-server/config/users"
Require valid-user
</LocationMatch>
<LocationMatch "^/.*/git-upload-pack$">
Options +ExecCGI
AuthType Basic
AuthName intranet
AuthUserFile "C:/git-server/config/users"
Require valid-user
</LocationMatch>
</VirtualHost>
我正在尝试2天来设置git.我没想到那很难.
我需要在需要PHP 5.2的遗留系统上做一些工作
我已经安装了XAMP 1.7.3但这个版本有PHP 5.3.
由于这是我在接下来的几个月里可能做了几次的工作,我正在考虑安装运行PHP 5.2的XAMP版本.与此同时,我参与了一些需要我使用PHP 5.3的工作,所以我只是不能卸载我当前的XAMP版本并安装一个使用PHP 5.2的版本
在XAMPP下载网站上,非常清楚的是,在安装任何XAMPP版本时,它将删除之前的版本.我做了一些研究,但找不到解决这个问题的方法.
我设法在/ Applications/XAMPP/xamppfiles/bin /下找到了phpswitch,并使用它的list动作向我显示我只安装了PHP 5.3.1并激活了它.我试图找出如何使用phpswitch下载/安装/激活PHP 5.2,但没有成功.
所以我正在寻找的是一种安装多个XAMPP或安装PHP 5.2并为XAMPP激活它的方法(通过phpswitch或其他方式)
我有一台正在提供.js文件的apache机器.该文件应该是唯一需要查看的文件.
我已经配置为在我的apache中这样做:
<Location /var/www/test/test.js>
    Order allow,deny
    Allow from all
</Location>
站点地址test.in指向目录中的test.js文件/var/www/test.这工作正常.但我希望当用户尝试点击test.in/someurl(不可用)或其他一些网址时,test.in不需要提供401错误消息.
我怎么做?提前致谢.
我想拥有www.example.com,staging.example.com并且demo.example.com,每个映射到Elastic Beanstalk上相同应用程序的单独环境.
这可能吗?
在我的托管区域中example.com.,我设置了cname记录www.example.com,staging.example.com并且demo.example.com每个记录都有一个指向其各自EB网址的值.
我设置的第一个www.example.com工作和请求到达环境.但是当我试图与其他人联系时ping staging.example.com,结果是ping: cannot resolve staging.example.com: Unknown host.
www.example.com工作正常这有可能开始工作吗?
注意:我已经用我的实际域名替换了example.com.
我可能会越来越近但它还没有工作,它正在回归You don't have permission to access /user.
根据此链接,https://serverfault.com/questions/407961/setting-up-subdomains-within-amazon-aws-elastic-beanstalk.
我补充说:
files:
  "/etc/httpd/conf.d/vhost.conf":
    mode: "000644"
    owner: root
    group: root
    encoding: plain
    content: |
      NameVirtualHost *:80
      <VirtualHost *:80>
        DocumentRoot "/var/app/current/"
         <Directory "/var/app/current/">
          Options Indexes …在尝试使用Apache + mod_wsgi运行Flask时,我已经尝试了很多事情以达到很高的挫败感.
基本上我已经完成了以下教程:
http://flask.pocoo.org/docs/deploying/mod_wsgi/#installing-mod-wsgi http://www.lonesomedev.com/?p=169
但在浏览器上我收到以下错误:
访问被禁止!
您无权访问请求的对象.它受读保护或服务器无法读取.
如果您认为这是服务器错误,请与网站管理员联系.
在Apache error.log中有以下内容:
[Fri May 03 17:17:06 2013] [错误] [client :: 1]客户端被服务器配置拒绝:/home/user1/Develop/flask_dbadmin.wsgi
我正在运行OpenSuse 11.4.
我有错误:
[authz_core:error] [pid 20259] [client 127.0.0.1:45677] AH01630: client denied by server     configuration: /home/user/www/myhost.dev
和403禁止
在Apache/2.4.7(Ubuntu)当然我添加了Require all grant
我的配置是:
<VirtualHost *:80>
ServerName myhost.dev
ServerAdmin admin@myhost.dev
DocumentRoot /home/user/www/myhost.dev/web
<Directory /home/user/www/myhost.dev/web>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
ErrorLog /var/log/apache2/error.myhost.dev.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel notice
CustomLog /var/log/apache2/access.myhost.dev.log combined
</VirtualHost>