Articles of apache 2.2

需要加载mCrypt扩展才能使OpenCart正常工作

我试图设置我的Opencart网站,我有本地站点在我的Debian开发机器上工作,生产我有一个CentOS 5.4 VPS与Apache和东西。 当我尝试在VPS中安装OpenCart时,在步骤2中说: Warning: mCrypt extension needs to be loaded for OpenCart to work! 还显示了诸如mysql,GD,cURL和mCrypt的扩展设置为closures以及何时应该设置为打开。 mCrypt的版本是 Mcrypt v2.6.8 (x86_64-redhat-linux-gnu) Enlazado contra libmcrypt v2.5.8 PHP -V PHP 5.3.28 (cli) (built: Dec 18 2013 20:31:55) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies PHP -m bcmath bz2 calendar Core ctype […]

dynamic设置Apache用户和组

在Apache Web服务器中,有没有办法在虚拟主机之间设置不同的用户和组? 我想运行PHP脚本的所有者的许可(在mod_php)。

build立一个linuxnetworking服务器,禁止基本的操作

这个问题可能是一个奇怪的问题。 然而,我是一个在Linux /networkingnoob,并试图设置我的旧Ubuntu桌面运行计算机作为一个Web服务器,并将其放在我的服务器机柜,将连接到less数其他计算机,链接到相同的局域网和那些可以访问我的Ubuntunetworking服务器。 这台Ubuntu电脑(CPU塔)将松动它的显示器,键盘和所有其他外围设备,并进入我的服务器机柜。 而且这台机器只能在办公室工作时间(需要打开/closures)工作。 我的问题是在服务器机舱内部设置这个CPU塔之后。 1.有人打开机器后,如何以用户身份login,而不必关注显示器? 2.当本机需要closures时,有没有什么build议如何执行? 另外,我知道我要安装openSSH服务器并closures,其他操作可以通过SSH进行。 这是小型办公室configurationnetworking服务器的方式吗?

在虚拟主机上开始使用Apache mod_rewrite

嘿所以我试图使用Apache的mod_rewrite模块做一些基本的url在我的网站上的重新调整,所以他们变得更友善一点 基本上我有一个虚拟主机文件,看起来像这样 <VirtualHost *:80> ServerAdmin [email protected] ServerName mind-knowledge.com ServerAlias www.mind-knowledge.com DocumentRoot /var/www/tagmenu <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/www/tagmenu> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all <IfModule mod_rewrite.c> RewriteEngine on RewriteRule /video/([0-9]+) /PlayVideo/index.php?videoID=13424 </IfModule> </Directory> </VirtualHost> 现在从我的理解重写规则应该允许http://www.mind-knowledge.com/PlayVideo/13424/呈现为页面http://www.mind-knowledge.com/PlayVideo/index.php?videoID=13424是否正确? 目前我得到404,我已经运行sudo a2enmod rewrite和重新加载Apache。 任何人都可以帮我在我做错了什么或build议一些方法来解决问题,在此先感谢。 布兰登

Web服务器atack DDOS

我有一个服务器(vps)作为存储库和testing(gitlab和redmine)服务器。 然而Apache崩溃,看到/var/log/apache2/error.log有这种types的许多错误: [Fri Jan 31 16:07:31.056851 2014] [:error] [pid 1538] [client 63.141.239.204:4740] script '/var/www/ads.php' not found or unable to stat, referer: http://www.wealthsuperman.com/index.php/component/k2/item/1017-3-industry-impacting-innovations-on-the-horizon [Fri Jan 31 16:07:31.377531 2014] [:error] [pid 1549] [client 216.244.79.163:2282] script '/var/www/ads.php' not found or unable to stat, referer: http://www.movieseeing.com/index.php?option=com_content&view=article&id=2244:bin-aflek-kevin-names-directory&catid=45:superman-movie&Itemid=418 [Fri Jan 31 16:07:31.538993 2014] [:error] [pid 1436] [client 23.88.201.68:4073] script '/var/www/banner_728x90.php' not […]

为什么我的Apache虚拟主机显示Apache的默认页面?

我想知道如果我做错了什么或什么? 我有子域指向我的服务器IP(公共服务器的IP),但是当我去我的子域它显示我的默认页面的Apache。 是的,我使用名称虚拟主机,但仍然没有… 现在我已经把页面放在html目录中,并且它工作正常,但我认为这不是解决scheme。 是的,我可以指出我的子域到subdomain.domain.com/thepage,但是我不想这样做。 这里是我的conf。 部分 NameVirtualHost *:80 <VirtualHost *:80> ServerName subdomain.domain.com DocumentRoot /var/www/ ServerAlias www.subdomain.domain.com </VirtualHost> 任何build议? 这是我得到的.. NameVirtualHost *:80 <VirtualHost *:80> ServerName domain.com DocumentRoot /var/www/ – here is domain.com ( there is directory named ivan ) ServerAlias www.domain.com </VirtualHost> NameVirtualHost *:80 <VirtualHost *:80> ServerName subdomain1.domain.com DocumentRoot /var/www/ – and here is subdomain1.domain.com […]

为什么nginx将端口8080上的请求redirect到端口80(apache)

我在Ubuntu 12.04的apache2(port 80)上有一个WordPress的博客设置,我也有一个监听端口8080的nginx设置,服务于同一个博客。 我的问题是,每当我尝试打开端口8080上的博客,nginx将请求redirect到Apache不应该发生。 我正在发布/ etc / nginx / sites-enabled / wordpress的内容 server { listen 8080; root /var/www; index index.php index.html index.htm; server_name foobartech.strangled.net:8080; location / { try_files $uri $uri/ /index.php?q=$uri&$args; } location /doc/ { alias /usr/share/doc/; autoindex on; allow 127.0.0.1; deny all; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = […]

对AWSTATSconfiguration文件的更改

我已经对我的站点特定的Awstatsconfiguration进行了一些更改,即SkipHosts和SkipFiles 。 我已经对手册进行了深入研究,但还不清楚:为了使更新生效,我需要做些什么? 此外,虽然我正在进行更改…任何人都知道是什么导致awstats报告与Google Analytics报告之间的巨大差异? 两者都以相同的方式过滤。 例如,我正在处理的网站:Analytics(分析)每天报告10k次展示,Awstats在同一天展示49k次展示。

使用反向代理更改源中的url?

有时我们会在另一台服务器上复制活动网站以testing新function。 很多CMS系统对数据库中的URL进行硬编码,所以不可能只使用另一个URL。 在我们的本地系统上,我们只是使用hosts文件将请求redirect到另一个IP。 这对客户来说太复杂了,所以我们需要一个更简单的方法。 可以使用apache(我们使用apache作为web服务器)作为反向代理,因此它将dev.somedomain.comredirect到anotherdomain.com。 剩下的唯一问题是,在HTML源代码中存在与anotherdomain.com的绝对链接。 有没有办法让阿帕奇(或其他软件)取代所有页面(+ js + css)中的http(s)://anotherdomain.com到http(s)://dev.somedomain.com的所有链接? 性能不是问题,因为这显然决不会运行在less数人使用的系统上。

为Apache服务器selectUbuntu发行版

我将在Azure虚拟机上托pipeApache服务器。 为此,我select了以下Ubuntu发行版之一。 我应该select哪一个更稳定? Ubuntu服务器14.04 LTS Ubuntu服务器13.10 Ubuntu服务器12.10 Ubuntu服务器12.04 LTS