Articles of 子域

只通过一个PHP文件创build子域名?

窝,有没有办法只通过一个PHP文件创build子域名? 像创build一个函数调用createsubdomain($ username)什么的? 这真的会有所帮助,一旦用户在网站上注册自己,他就可以访问hisname.thewebsite.com来访问他的完整个人资料 感谢replues equatorlounge.wordpress.com

如何为子域创build默认的MXlogging?

是否可以为子域设置默认的MXlogging? 例: domain example.com MX record set for example.com to mail.example.com MX record for sub2.example.com to mail2.example.com 有没有一种方法可以确保发送到[email protected]的邮件将被发送到[email protected],而无需为sub2子域定义MXlogging? 亲切的问候,

尝试使用Apache2创build子域

我在Linode VPS上使用Ubuntu 10.04和Apache2.2 – 我试图创buildmysite.com的子域sub.mysite.com。 我已经添加了这个条目到/ etc / apache2 / sites-enabled: <VirtualHost *:80> ServerAdmin [email protected] ServerName mysite.com ServerAlias sub.mysite.com DocumentRoot /srv/www/sub.mysite.com/public_html/ ErrorLog /srv/www/sub.mysite.com/logs/error.log CustomLog /srv/www/sub.mysite.com/logs/access.log combined </VirtualHost> 和这行到/ etc / hosts: 127.0.0.1 sub.mysite.com 并创build一个DNS区域文件指向sub.mysite.com … 我可以成功地ping sub.mysite.com,但不能得到index.html加载在我的浏览器… 有任何想法吗?

Apache2子域提供相同的内容

我是一个被抛入系统pipe理员世界的程序员,他有一个简单的问题。 我有一个Web服务器,我正在尝试为(iemserver.com)添加一个移动子主机。 目前configuration看起来像: <VirtualHost *:80> ServerName server.com ServerAlias www.server.com DocumentRoot /home/fc/app/current/public </VirtualHost> <VirtualHost *:443> ServerName server.com ServerAlias www.server.com DocumentRoot /home/fc/app/current/public SSLEngine on SSLCertificateFile /etc/ssl/certs/server.crt SSLCertificateKeyFile /etc/ssl/private/server.key </VirtualHost> 现在我想,添加一个m子域去同一个地方应该很容易,对吧? 这将工作: <VirtualHost *:80> ServerName server.com ServerAlias www.server.com, m.server.com DocumentRoot /home/fc/app/current/public </VirtualHost> 谢谢!

处理开发子域

我有一个虚拟主机转发到我的主域(例如显示相同的内容,我的主要域显示)。 现在我的网站使用一个主域名:www.example.com 和各种别名域:example.com short.com 我正在创build一个新的围墙花园开发网站:dev.example.com 但是我的虚拟主机没有被识别为该url。 我必须在DNS主机中创build* .example.com的通配符logging吗? 以下是我的默认虚拟主机设置(当前位于/etc/apache2/sites-enabled/000-default )中的相关部分: <VirtualHost *:80> ServerAdmin [email protected] ServerName www.example.com ServerAlias example.com ServerAlias shortUrlEx.com ServerAlias www.shortUrlEx.com RewriteEngine On RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteRule ^(.*)$ http://www.example.com$1 [L,R=301] RewriteCond %{HTTP_HOST} ^shortUrlEx.com [NC] RewriteRule ^(.*)$ http://www.example.com$1 [L,R=301] RewriteCond %{HTTP_HOST} ^www.shortUrlEx.com [NC] RewriteRule ^(.*)$ http://www.example.com$1 [L,R=301] DocumentRoot /var/www/examplepath php_value date.timezone "America/New_York" php_value expose_php […]

子域不parsing为IP

我创build了一个子域http://themes.ibrogram.com ,似乎没有工作,但http://ibrogram.com/themes确实工作。 我有这个问题的年龄使用Alogging,似乎无法弄清楚如何解决它。 有任何想法吗? 编辑 ; Domain: ibrogram.com ; Exported (ymd hh:mm:ss): 2011-11-26 10:57:43 ; ; This file is intended for use for informational and archival ; purposes ONLY and MUST be edited before use on a production ; DNS server. ; ; In particular, you must update the SOA record with the correct ; […]

在具有域通配符的同一台服务器上进行分段和生产

我有一个虚拟主机configuration为在Apache和Passenger上以这种方式运行Ruby on Rails应用程序: <VirtualHost *:80> ServerAdmin [email protected] ServerName staging.domain.co ServerAlias *.doamin.co DocumentRoot /home/ubuntu/staging/current/public 所以staging.domain.co,site1.domain.co,site2.domain.co正在工作中查找,这是为分段环境。 现在我需要在同一台服务器上添加生产环境。 我想添加生产环境,但我不知道如何去做。 VPS正在EC2上运行。 即使使用两台不同的服务器,也存在DNS服务器将所有子域parsing为当前VPS IP的问题。 我认为唯一的解决scheme是使用不同的二级域名: staging anotherdomain.co production domain.co 你怎么看?

Apache子域不能正常工作

我在我的本地机器上运行Apache,我试图创build一个子域,但它不工作。 这是我的(剥离): <VirtualHost *:80> DocumentRoot /var/www/one ServerName one.localhost </VirtualHost> <VirtualHost *:80> DocumentRoot /var/www/two ServerName two.localhost </VirtualHost> 我最近加了one 。 这two条目已经有一段时间了,它仍然正常工作(显示网页,当我去two.localhost )。 事实上,我复制了整个two.localhost条目,只是简单地将two更改为one ,但它不起作用。 我已经尝试了以下每一个: * `apachectl -k graceful` * `apachectl -k restart` * `/etc/init.d/apache2 restart` * `/etc/init.d/apache2 stop && !#:0 start` 如果/var/www/one不存在,Apache会发出抱怨,所以我知道它正在做某些事情 ,但是当我在浏览器中访问one.localhost ,浏览器抱怨没有任何东西。 我在那里放了一个index.html文件,也试着直接去one.localhost/index.html ,浏览器还是不行。 这是非常令人困惑的,因为我从two.localhost复制的条目是完全一样的..不仅如此,但如果出现错误,我期望得到一个500,而不是浏览器无法find任何东西。 error_log也没有什么额外的。

Nginx的子域configuration不能正常工作

我试图添加一个子域到我的nginx服务器,似乎无法得到它的工作。 这里是我的主服务器的configuration文件: server { listen 80; server_name www.kevin-whitaker.net; rewrite ^/(.*) http://kevin-whitaker.net permanent; } server { listen 80; server_name kevin-whitaker.net; access_log /home/admin/public_html/kevin-whitaker.net/log/access.log; error_log /home/admin/public_html/kevin-whitaker.net/log/error.log; root /home/admin/public_html/kevin-whitaker.net/public/; index index.html; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect false; if (-f $request_filename/index.html) { rewrite (.*) $1/index.html break; } if (-f $request_filename.html) { rewrite […]

Nginx服务错误的网站

我有一个静态IP和2个域名(beryju.org和nope.berlin)在我的VPS的nginx设置。 我想服务: 网站1到beryju.org 网站2到blog.beryju.org 站点3到i.beryju.org 站点4到nope.berlin 另外我想要beryju.org和blog.beryju.org支持SSL。 但是用我目前的configuration,我得到: 网站1没有 网站2在beryju.org和blog.beryju.org上 i.beryju.org网站3 网站4 nope.berlin 我试过了,当我从listen语句中删除主机名时也不起作用 listen i.beryju.org:80; 至 listen 80; 在每个文件中。 beryjuorg-blog.conf server { listen blog.beryju.org:80; listen blog.beryju.org:443 ssl; ssl_certificate /home/beryju/SSL/nginx/beryju.org.cert; ssl_certificate_key /home/beryju/SSL/nginx/beryju.org.key; access_log /var/log/nginx/beryjuorg-blog.access.log; error_log /var/log/nginx/beryjuorg-blog.error.log; root /home/beryju/Apps/Ghost/; index index.html index.htm index.php; location / { proxy_pass http://127.0.0.1:2368; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For […]