Articles of 虚拟主机

php.ini使用多个包含path – openbasedir限制

我需要为Plesk 10上的虚拟子域名提供包含path。我已经将PHP PEARpath编辑到/etc/php.ini中,因为我很高兴它可以在全球范围内使用: include_path = ".:/usr/share/pear/" 这是有效的,因为当脚本尝试包含它们时,PHP能够看到那个目录中的文件,但是我得到了可怕的openbasedir错误: Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/usr/share/pear/xxxx.php) is not within the allowed path(s): (/var/www/vhosts/xxxx.com/subdomains/test/httpdocs/:/tmp/) 我说的是,子域或主域可以有一个vhost.conf文件,我可以改变openbasedir允许的path? 我试过寻找解决办法,但恐怕我不能看到一个:)

如何从本地机器移动项目到外部Linux服务器

我是一个Linux的noob。 我一直在我的本地主机上开发一个PHP / MySQL项目。 我的系统运行Windows 7,我用xammp来安装PHP5和MySQL。 我也一直保存更新到一个商业网站托pipe的svn仓库。 我现在需要将我的项目移动到运行Ubuntu的外部服务器,但我不知道如何做到这一点。 我拥有所有凭据,并且能够使用Putty通过SSH连接到外部服务器,并且服务器已经安装了LAMP。 我知道这听起来很不起眼,但我不知道该从哪里出发。 我不知道如何将我的项目从本地机器移动到此服务器。

在虚拟主机上为2个域设置Postfix

我已经探索了Postfix的文档,看来,我想要做的是设置: Postfix在一个空客户端上 Slicehost对于技术帮助来说是一个死胡同,但是这是我想要做的。 我需要电子邮件设置才能发送注册确认和新的密码请求。 我想为服务器上托pipe的2个域执行此操作: domain1.com domain2.com 这是domain1.com的当前configuration: /etc/postfix/main.cf中 myhostname = mail.domain1.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = mail.domain1.com, instantdm, localhost.localdomain, localhost relayhost = domain1.com mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = loopback only local_transport = error:local delivery is disabled 这似乎是main.cf应该为domain2.comconfiguration,但我不明白如何configuration2个不同的域名的后缀。 /etc/postfix/main.cf文件: myorigin = […]

一个用于多个SSL站点的IP?

可能重复: 在同一IP上使用SSL的多个域 我们正计划在一个专门的服务器上托pipeMagento网站。 每个专用服务器能否托pipe〜40个Magento网站? 每个站点都需要SSL。 所以,我猜测每个40 SSL证书需要单独的专用IP。 由于托pipe服务提供商用尽了IP,我们可以为每台服务器配备40个专用IP,或者可以为40个SSL站点使用一个专用IP? 期待您的build议。

非共享,每个用户,WordPress(PHP)安装

什么是build立基于Apache的PHP虚拟主机安装的方法,每个站点只有一个用户分配给它? 只读取和执行每个站点的一个用户(不是www-data或所有用户) /srv/www安装文件夹(不是/home ,用户没有shell) 写访问限于一个文件夹 因为我相信这会增加一些安全性,以防止一个站点在共享主机上受到威胁。 我会很感激指向工具,教程等。

在Apache中处理默认的VirtualHost

如果我错了,请纠正我的任何陈述。 我意识到VirtualHosts是通过httpd.conf行加载的(确切path是个人的) Include conf/vhosts/*.conf 每个*.conf主机按文件名的顺序加载 0default.conf 1site.conf 2site2.conf … 这是处理哪个网站将出现(单一和唯一的)IP地址的好方法吗? 我的意思是,如果我去我的服务器的IP( 12.34.56.78 ),我会看到0default.conf定义的VirtualHost,这是正确的方式如何做到这一点? 谢谢

Apache 2.28上的单音 – 虚拟主机无法正常工作

我在Windows 7上安装了Mono,按照http://www.mono-project.com/Using_Mono_on_Windows#Using_Mono_on_Windows中的说明操作。 mod_mono被添加到httpd.conf,理论上,它应该工作。 不过,我希望我的一个虚拟主机通过mod_mono运行asp.net。 这里是: <VirtualHost *:80> ServerName www.joebloggstest1.co.uk ServerAlias joebloggstest1.co.uk DocumentRoot /www/joebloggstest1.co.uk </VirtualHost> <Directory "/www/joebloggstest1.co.uk"> Options All AllowOverride All order allow,deny allow from all </Directory> </VirtualHost> 我无法find如何在Google上使用Windows,只有Linux / Ubuntu发行版,这对我的情况并不有用。 mod_mono是安装的,这是从httpd.conf: Include conf/mod_mono.conf AddHandler mono .aspx .asp .ascx .asax .ashx .config .cs .asmx .axd <Location /mono> SetHandler mono-ctrl Order deny,allow Deny from all Allow from […]

如何仅在子域上保持SSL访问

我有一个Apache2configuration <VirtualHost *:80> ServerName y.com </VirtualHost> 和子域 <VirtualHost *:443> ServerName xycom </VirtualHost> 目标是使https:// xycom只能通过SSL访问。 但是,当我input任何其他子域名,例如https://any.y.com我看到相同的页面为https:// xycom 如何禁用像https://any.y.com这样的任何url,以https:// xycom显示相同的网页。 我希望这样的网站根本不应该被访问。

Apache conf:如何在通配符虚拟主机中使用mod_vhost_alias时指定<Directory / path / to / subdomain>中的子域

首先,我们需要一个对*.example.com的请求来处理相应的/var/www/*/目录,我们通过使用带有VirtualDocumentRoot mod_vhost_alias这个工作,如下所示: <VirtualHost *:80> ServerAlias *.example.com UseCanonicalName Off VirtualDocumentRoot /var/www/%1/ </VirtualHost> 现在我们想通过在vhostconfiguration的<Directory>块中应用相同的RewriteRules到所有子域/目录来扩展这个共享configuration,但是我们不知道如何引用子域/目录。 我们基本上是想做这样的事情(注意使用%1,在这种情况下不起作用): <VirtualHost *:80> ServerAlias *.example.com UseCanonicalName Off VirtualDocumentRoot /var/www/%1/ <Directory /var/www/%1> RewriteEngine on RewriteRule ^about/?$ index.php?view=about RewriteRule ^settings/?$ index.php?view=settings RewriteRule ^support/?$ index.php?view=support </Directory> </VirtualHost> 是这样的可能吗? 谢谢。

CentOS Apache虚拟主机

请如何确保我的IP IP地址具有与我的域不同的内容。 任何时候我访问我的IP地址,它会一直显示我的虚拟主机文件中的第一个条目。