我有一个centos框,我正在尝试为Apache设置NTLMauthentication。 我已经在AD域的Linux框,并能够使用wbinfo命令获取用户和组信息。 我有ntlm.conf httpdconfiguration设置如下 <Directory "/var/www/html/auth"> Options Indexes ExecCGI FollowSymLinks DirectoryIndex index.html index.php AllowOverride all AuthName "NTLM" Require user acorp NTLMBasicAuthoritative on AuthType NTLM NTLMAuth on NTLMAuthHelper "/usr/bin/ntlm_auth –helper-protocol=squid-2.5-ntlmssp" </Directory> 当我运行命令/ usr / bin / ntlm_auth –username acorp –domain acorp.local时,我得到了NT_STATUS_OK,但是当我进入https页面时,它不接受用户名和密码。 我看不到任何日志文件上的任何错误消息。 任何援助将不胜感激。
我已经尝试了很多可以通过Googlefind的build议,以便在从Debian升级到Jessie(从Apach 2.2升级到2.4)后使我的虚拟主机正常工作。 我有mod_rewrite和mod_access_compat,这就是为什么当我使用旧的语法似乎工作正常。 只要我Require all granted ,它停止工作,我得到403禁止。 我有很多的虚拟主机,这是相同的全线…大部分是Drupal的安装。 这是一个虚拟主机的例子: <VirtualHost *:80> ServerName www.skyjacobs.com Redirect 301 / http://skyjacobs.com/ </VirtualHost> <VirtualHost *:80> ServerAdmin [email protected] ServerName skyjacobs.com DocumentRoot /www/sky <Directory /www/sky> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny # These 2 lines work allow from all # Require all granted # If I use this line only, […]
我有基于名称的SSL(SNI)虚拟主机的Apache 2.4.10。 虚拟用户可以使用自己的证书并将其上传到服务器。 一切工作正常,直到证书文件(即文件丢失或错误的名称)有一些错误。 问题是如果有一些证书问题,Apache将不会启动。 有一些解决scheme如何启动Apache这个错误(即所有虚拟主机将启动,除了一个虚拟主机失败)? 这不起作用: <If "-f '/path/to/file.crt'"> <VritualHost *:443> SSLEngine On SSLCertificateFile /path/to/file.crt </VirtualHost> </If> …这也不起作用: <VirtualHost *:443> <If "-f '/path/to/file.crt'"> SSLEngine On SSLCertificateFile /path/to/file.crt </If> </VirtualHost> 问题是configuration语法错误“SSLEngine不允许在这里”或“VirtualHost不允许在这里”。 所以我的configuration上面是不允许的Apache。 非常感谢。 编辑:小错字
我正在检修网站以使用新的url结构,但不希望旧url为404,而是redirect到新内容。 使事情复杂化,这是在一个共享的主机上.htaccess是唯一允许的configuration。 有很多旧的URL,足以把它们全部插入.htaccess将是一个坏的举动。 我知道RewriteRule指令需要FollowSymLinks ,这意味着我可以在旧URL的位置创build一堆符号链接,指向它们的新位置? 这会让Apache发出redirect到新的位置?
我部署一个基于Yii的应用程序,我们通过ajax发送查询string来search产品,在本地的apache环境中,这些string被处理,但是在我们的生产服务器上运行nginx查询string后,'&'被忽略 我们的查询string示例是 /en_GB/site/products?question1=female&question4=skincare&question5=60 发送时,我们遇到了500错误 Error 500 Undefined index: question5 CHttpException Your request is invalid. 我们的nginxconfiguration包含 location / { try_files $uri $uri/ /index-prod.php; } location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; fastcgi_buffer_size 128k; fastcgi_buffers 256 16k; fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; } 任何帮助
我有一个Apache 2.4服务器作为一个SSL反向代理服务器运行,我正在运行一些服务器,我正在为此引入一些客户端证书authentication。 但是,有许多使用此网关的自动服务,无法修改为使用客户端证书进行身份validation,但仍需要使用反向代理服务器。 目前,要打开客户端证书,我正在使用: SSLCADNRequestFile /…/my_ca.crt SSLVerifyClient require <Location /> SSLOptions +FakeBasicAuth AuthName "Auth Only Area" AuthType Basic AuthUserFile /…/clientAuth.htpasswd require valid-user </Location> 这工作正常。 但是,有什么办法可以跳过这个来自(例如)IP地址12.34.56.78任何请求吗?
我正在尝试许多不同的configuration,下面有很多教程和文档,如果不创build数千个.htaccess文件,我就无法获得authentication。 这是我的configuration: <VirtualHost *:443> DocumentRoot /home/user/www ServerName preprod.user.com <Directory /home/user/www> Options Indexes SymLinksIfOwnerMatch AllowOverride All AllowOverride FileInfo AuthConfig Limit Require all granted </Directory> SSLEngine on SSLCertificateFile /etc/ssl/private/preprod.user.com.crt SSLCertificateKeyFile /etc/ssl/private/preprod.user.com.key </VirtualHost> 在根目录下,我写了这个/home/user/www/.htaccess文件: AuthType DIGEST AuthName "preproduction" AuthDigestNonceLifetime 1 AuthDigestDomain "/home/user/www/" "https://preprod.user.com/" AuthDigestProvider file AuthUserFile "/web/auth/.digest_pw" Require valid-user 结果是: https://preprod.user.com/ asks for a password https://preprod.user.com/v1/ asks for […]
经过大量的研究,现在又重新安装了Debian 8,我已经放弃了,我希望服务器故障中的美好社区能够帮助我摆脱我的疯狂。 他们把我踢出Stack Overflow。 🙁 严峻的步骤:1.安装Debian。 2.安装apache2。 3.安装php 完成这些步骤后,我创build了一个称为沙箱的虚拟站点,并添加了以 ServerName沙箱DocumentRoot / var / www /沙箱 PHP仍然在主网站上工作,但我不能为了我的生活得到它为虚拟的工作。 我在这个页面的每一个上都有大部分的“解决scheme”: https://stackoverflow.com/questions/9305680/apache-virtual-host-not-parsing-php 我已阅读了PHP.net,apache.org上的文档 有其他人在类似的情况?
我有一个woocommerce网站。 我在Apache error.log中有一个recursion错误: [Mon Nov 02 17:04:58.723578 2015] [core:error] [pid 2922] [client 172.31.12.207:19044] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: https://gremyo.com/wp-content/themes/bishop/woocommerce/style.css [Mon Nov 02 17:04:58.812460 2015] [core:error] [pid 2928] [client 172.31.12.207:19045] AH00124: […]
Apache 2.4似乎有内置的mod_version试图加载它: LoadModule version_module /usr/lib/apache2/modules/mod_version.so 得到一个错误: Syntax error on line 26 of /home/ysth/src/conf/apache2.conf: module version_module is built-in and can't be loaded (而且mod_version.so文件不存在)。 我有一些独立的Apacheconfiguration文件用于运行各种服务,所以正常的mods_enabled目录是不合适的。 我想要使用IfVersion具有用于apache2.2和apache2.4相同的conf文件。 我怎样才能加载mod_version只为apache2.2?