Articles of apache 2.4

域名返回“ERR_NAME_RESOLUTION_FAILED”,虽然反向DNS工作

我有一台服务器运行Ubuntu 16.04.2 LTS与apache2.4和VirtualHost应该连接我的域到给定的子文件夹/var/www/html/mysite.com/public_html 我的问题是,当我尝试在浏览器中打开我的域,我得到的错误 ERR_NAME_RESOLUTION_FAILED 现在,我对自己的服务器还是比较陌生的,但对我来说,“原则上”一切都很正常: apache2ctl -S告诉我,我的VirtualHostconfiguration是好的。 DNSconfiguration看起来不错,例如, https: //mxtoolbox.com/返回正确的Nameservers。 特别令人困惑的是,我已经为我的服务器的IP地址设置了反向DNS,使其指向我的域名。 这反向DNS完美的作品,虽然我的域名本身不起作用。 当我打电话给我的服务器的IP地址,它显示我成功index.html文件位于/var/www/html/mysite.com/public_html文件夹。 该文件夹只在VirtualHost中指定 mysite.com.conf 文件。 我通过更改文件夹和文件来检查这个。 因此,当我在浏览器中调用服务器的IP时,他可以将其连接到mysite.com和相应的文件夹+文件。 但是当我直接打电话给我的域名时,我得到一个错误。 (我另外使用NSLOOKUP XXX.XXX.XXX.XXX来validation我得到mysite.com。但是,当我尝试NSLOOKUP mysite.com我得到“mysite.com未find未知”)。 可能是这个错误的原因是什么?

为什么HTTP / 2testing说我有ALPN支持,即使我只有OpenSSL1.0.1t?

这个问题有点类似于这个为什么我的服务器不支持ALPN? 但在我的情况下,即使我不使用OpenSSL1.0.2,只有OpenSSL1.0.1t也支持ALPN 我目前使用Apache2.4.25与H2激活。 但是即使我的OpenSSL不支持它,它仍然困扰着ALPN的支持吗? 我的http2.conf在conf-enabled中: Protocols h2 h2c http/1.1 H2Push on H2PushPriority * after H2PushPriority text/css before H2PushPriority image/jpeg after 32 H2PushPriority image/png after 32 H2PushPriority application/javascript interleaved SSLProtocol all -SSLv2 -SSLv3 SSLHonorCipherOrder on SSLCipherSuite 'EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA !RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS' LDD输出: […]

Nginx的HTTP到HTTPSredirect不起作用

我正在运行一个Redmine实例,它使用nginx的SSL和apache来提供内容。 我正在通过在新机器上安装最新版本来升级这个版本,一旦完成所有工作,我将复制文件和数据库。 我已经从现有的机器上复制了Apache和Nginx的configuration到新的机器,但结果是不同的两台机器,我不明白为什么。 在目前的生产实例中,Redmine正在18804港口运行(如我的老板所定)。 目前,当有人使用浏览器访问redmine.mydomain.com时,他们会自动使用HTTPSredirect到Redmine。 发生这种情况的原因是:18804是否被追加到末尾,这是我希望如何操作的。 但是,在新机器上,如果在浏览器中inputnewredmine.mydomain.com,我将被redirect到nginxtesting页面。 但是,如果我inputnewredmine.mydomain.com:18804或https://newredmine.mydomain.com ,那么我将使用HTTP路由到应用程序。 我只需input逻辑URL即可完成此操作。 很明显,redirect到HTTPS不工作,但作为configuration是一个确切的副本,我不明白为什么。 当前服务器正在运行Amazon Linux,Apache 2.2.31和nginx 1.10.2。 新的运行Centos 7,Apache 2.4.6和nginx 1.10.2。 这是我的应用程序的configurationnginx: upstream redmine { server 127.0.0.1:18805; } server { listen 18804; location / { return 301 https://$host$request_uri; } } server { listen 80; location / { return 301 https://$host$request_uri; } } server { listen 443 ssl; […]

phpMyAdmin和Apache – 查询string – 404错误

当phpMyAdmin尝试访问URL为https://example.com/phpmyadmin/server_variables.php&filter=long_query_time时 ,Apache将引发404错误。 可能是什么问题? The requested URL /phpmyadmin/server_variables.php&filter=long_query_time was not found on this server. Apache/2.4.27 (Ubuntu) Server at example.com Port 443 当我改变& ? ,一切都像魅力一样工作。 我的phpmyadmin.conf如下所示: Alias /phpmyadmin "/usr/share/phpmyadmin" <Directory "/usr/share/phpmyadmin"> DirectoryIndex index.php AllowOverride All Options FollowSymlinks Require all granted </Directory> /usr/share/phpmyadmin .htaccess如下所示: AuthType Basic AuthName "Restricted access!" AuthUserFile /usr/share/phpmyadmin/.htpasswd Require valid-user phpMyAdmin版本是:4.7.3

HTTP到HTTPSredirect不在Apache 2.4上工作

我有这个Apacheconfiguration: <VirtualHost *:80> DocumentRoot "/home/example/public_html/" ServerName www.example.com <Directory "/home/example/public_html/"> allow from all RewriteEngine on RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L] </Directory> </VirtualHost> redirect似乎从来没有火,只是从http服务的文件。 我尝试了各种组合,但似乎没有任何工作。 mod_rewrite已启用(使用LoadModule rewrite_module modules / mod_rewrite.so) 谁能帮忙?

HTTP到HTTPSredirect失败

当我导航到http://example.com它正确地redirect到https://example.com 。 我遇到的问题是,当我导航到http://example.com/sub/directory/page.htm它redirect到https://example.comsub/directory/page.htm 。 为什么不redirect到https://example.com/sub/directory/page.htm ? 这里是Apache的configuration: <VirtualHost *:80> ServerName example.com Redirect permanent / https://example.com/ </VirtualHost> <IfModule mod_ssl.c> #NameVirtualHost *:443 <VirtualHost *:443> ServerName example.com […] ProxyRequests Off ProxyPass / http://localhost:8444/ ProxyPassReverse / http://localhost:8444/ </VirtualHost> 我正在使用的Apache版本: Server version: Apache/2.4.18 (Ubuntu) Server built: 2017-09-18T15:09:02

Apache 2.4和PHP 5.4在浏览器中获取连接重置错误

在本周末,我将开发Web服务器升级到Apache 2.4和PHP 5.4。 在我之前在Apache 2.2和PHP 5.3上运行良好的Web应用程序中,现在开始获取这些消息,说Firefox中的“连接已重置”。 看截图 。 我通过本地局域网连接到Linux机器。 我假设这可能与新版本的Apache或PHP,或者我从BitNami下载的新LAMP堆栈有关? 这似乎发生每5-10个请求,并抛出这个错误,也许更有可能触发它是如果我从页面发送POST请求。 是否超时脚本或什么? 这些只是我正在加载的基本dynamic页面,他们在Apache 2.2和PHP5.3中完美工作。 这是我的httpd.conf和PHP.ini,如果有任何线索。 有任何想法吗? 任何帮助非常感谢。

Openssl heartbleed更新与编译的Apache 2.4.7不起作用

我们还有一个服务器的心脏问题。 我们用yum进行了更新,并重新启动了apache以及任何使用openssl的易受攻击版本的服务。 当我们testing我们的网站,看看它是否仍然脆弱它说这是。 我们的服务器有从源代码编译的apache 2.4.7。 有没有人有任何想法,为什么会说我们仍然使用Openssl的脆弱版本? 如果我做了“rpm -qa | grep ssl”,我得到以下内容: nss_compat_ossl-0.9.6-1.el6.x86_64 pyOpenSSL-0.10-2.el6.x86_64 openssl-1.0.1e-16.el6_5.7.x86_64 openssl-devel-1.0.1e-16.el6_5.7.x86_64

升级到Apache 2.4:VirtualHost命令无效“AssignUserID”

我有很多具有相同configuration的Apache 2.2虚拟主机: <VirtualHost *:80> ServerAdmin [email protected] ServerName site.com ServerAlias www.site.com DocumentRoot /home/site.com/htdocs/ ErrorLog /home/site.com/logs/error.log CustomLog /home/site.com/logs/access.log common AssignUserID site.com ftp <Directory /home/site.com/htdocs/> DirectoryIndex index.html index.htm index.php Options Includes FollowSymLinks SymLinksIfOwnerMatch AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> 尝试在Apache 2.4上运行相同的configuration时出现错误: Performing sanity check on apache24 configuration: AH00526: Syntax error on line 8 of /usr/local/etc/apache24/Includes/site.com.conf: […]

无法在Apache 2.4 x64 Windows上运行mod_wsgi

我有一个Apache 2.2安装与Django网站。 我在我的Apacheconfiguration中加载mod_wsgi.so模块。 现在我试图迁移到Apache 2.4上,并且遇到了WSGI的困难。 首先:我的服务器在Windows 2008R2(x64)上。 我设置了Apache 2.4 x64(从Apache Lounge的httpd-2.4.10-win64-VC11.zip)然后我从http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi下载mod_wsgi二进制文件 – 我把mod_wsgi -3.5.ap24.win-amd64-py2.6.zip,因为Apache是​​x64,我的Python是2.6。 在conf / httpd.conf中我有 LoadModule mod_wsgi modules/mod_wsgi.so 运行httpd.exe时出现错误: httpd.exe:C:/Prog/Apache24/conf/httpd.conf中第179行的语法错误:无法将modules / mod_wsgi.so加载到服务器中:指定的模块找不到。 如果我用x86版本replacemod_wsgi.so,那么我会得到有关不正确位的其他错误,所以模块似乎尝试加载。 我已经全部安装了(2008 / 9,20010 / 10,2012 / 11)。 怎么了?