Articles of 子域名

通过主机名而不是IP进行域映射

是否可以configurationDNS,以便: anysubdomain.clientsite.com的CNAMElogging为abc.ourservice.com abc.ourservice.com对我们的专用IP有logging(因此,如果我们将来更改服务器,我们的客户端将不必更新其CNAME映射) 然后,我们可以捕获并处理对anysubdomain.clientsite.com发出的请求

Apache子域redirect失败

我刚刚购买了域名vas.im ,为vas.im和www.vas.im添加了DNS规则,然后我试图让apache2将后者redirect到前者。 我启用了mod_rewrite,追加了/etc/apache2/httpd.conf ,并重新启动了apache2服务。 ServerName localhost AccessFileName .htaccess # Redirect www to non-www RewriteEngine On RewriteEngine On RewriteCond %{HTTP_HOST} ^[url]www.vas.im[/url] [NC] RewriteRule ^(.*)$ [vas.im…] [L,R=301] 我一定犯了一些错误,因为www域不redirect。 我不假装我理解mod_rewrite,所以我想知道是否有人知道这个问题是什么。

有关子域configuration的VHost和DNS条目混淆(Apache)

在我的Vserver Id喜欢configuration一个子域名。 所以我有我的apache虚拟主机configuration下面的条目。 我想让我的网站app1.example.com作为自己的网站运行,以便网页和文件具有域名,例如app1.example.com/photo.jpg或app1.example.com/blog/ 。 <VirtualHost *:80> DocumentRoot /var/www/app1 ServerName app1.example.com <VirtualHost> <VirtualHost *:80> DocumentRoot /var/www/example ServerName example.com <VirtualHost> <VirtualHost *:80> DocumentRoot /var/www/wildcard ServerName other.example.com ServerAlias *.example.com <VirtualHost> 但为什么我需要这样的DNS呢? 不要我已经在我的虚拟主机configuration设置? Host Type Destination app1 A 78.xx.xx.xx (my IP) * A 78.xx.xx.xx 或者我需要指向目标这样的目录:app1.example.com Thx for advise!

没有www在前面的域名指向与www在前面一样的地方

考虑Godaddy的以下屏幕截图: 为什么我不能让*参考ghs.google.com,当我可以使www指向下面? 我觉得这里有一些基本的东西我被误解了,但这应该不是那么难。 我想要实现的是,open-org.com指向与www.open-org.com相同的地方。 最好他们都应该指向open-org.com像serverfault.com。 这个问题有一些类似的问题,但他们的解决scheme似乎没有在Godaddy上工作。 我正在使用Google协作平台进行虚拟主机。

找不到新创build的子域的非www版本

使用Cpanel,我刚刚创build了一个子域: members.domain.com 。 我可以查看www .members.domain.com上的域名,但非www版本不存在。 Pinging它我得到'找不到主机'。 我已经在DNS设置,甚至尝试为非www版本做一个新的logging,但没有运气。 这只是一个等待它传播的情况,还是我能做的其他事情。 显然我不能redirect使用.htaccess如果没有find域。 谢谢。

ubuntu apache2虚拟主机端口号不同于80的正确configuration是什么?

我刚刚inheritance了端口80上运行已经tomcat的服务器的Ubuntu 10.04。所以Apache 2 /etc/apache2/ports.conf有听8858。 我指出我的子域让我们说admin.domain.com到那个盒子的IP所以xx.xx.xx.xx:8858和admin.domain.com:8858都发送给我的根文件“它的作品” 所以我创build了/var/www/vhots/admin.domain.com/htdocs和/var/www/vhots/admin.domain.com/log我的第一个configuration看起来是下面,基本上重新加载后,重新启动apache2给我这个错误 VirtualHost *:8858 – 不支持使用NameVirtualHost地址混合*端口和非*端口,继续执行未定义的结果httpd(pid 7466?)未运行 ###/etc/apache2/apache2.cong NameVirtualHost * #NameVirtualHost *:8858 <VirtualHost *> ServerAdmin webmaster@localhost DocumentRoot /var/www/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order […]

如何redirect域的子域 – Blogger

我有一个博客博客贴出来,Google告诉我要添加一些Alogging,以启用一个无wwwredirect到完整的www域。 所以通过添加这些,访问bitfalls.com(这是我的博客)应该去www.bitfalls.com,但是这不会发生。 相反,我得到一个未发现的错误。 还有什么我该做的? logging如下: 有趣的是,即使blog.bitfalls.com失败,一个未发现的错误,只有当前缀与www它是否工作。 问题的另一部分是 – 因为我的域名是在name.com注册的,我只是根据Google的指南将bitfalls.com域名redirect到bitfalls.blogspot.com,我怎样才能redirect网站的子域名例如,code.bitfalls.com,去我的托pipe服务提供商(hostgator – 不是name.com)上的特定文件夹,没有它触发博客?

Apache服务器将子域redirect到端口

我试图用一个子站点redirect的非标准端口上的Minecraft服务器设置我的服务器,当我的浏览器导航到其正确的端口,或者如果通过网页浏览器导航将显示一个网页。 即: **Minecraft** minecraft.example.com:25565 -> example.com:25465 **Web Browser** minecraft.example.com:80 -> Displays HTML Page 我试图通过在Apache中使用以下VirtualHosts来做到这一点: Listen 25565 <VirtualHost *:80> ServerAdmin [email protected] ServerName minecraft.example.com DocumentRoot /var/www/example.com/minecraft <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/example.com/minecraft/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> </VirtualHost> <VirtualHost *:25565> ServerAdmin [email protected] ServerName minecraft.example.com ProxyPass / http://localhost:25465 […]

将所有子域从httpredirect到https

我通过使用下面的代码redirect到我的子域的所有http请求。 <VirtualHost *:80> ServerName subdomain.example.com Redirect 302 / https://subdomain.example.com </VirtualHost> 现在我的问题是如何做所有子域名。 例如,http:subdomain1.example.com应转到https:subdomain1.example.com,http:subdomain2.example.com应转到https:subdomain2.example.com 如何为所有子域创build,而无需为它们创build一个虚拟主机

Nginxconfiguration不能在子目录中使用wordpress

我有一个nginx安装,我需要在开发中托pipe网站,以便其他人可以testing出来。 现在,我已经为单个子域设置了一个虚拟主机,并且在这个目录中,我需要打开一个符号链接项目,以便testing。 正如你所看到的,我限制了访问整个网站,但启用了特定的目录,但保持私有一个简单的auth_basic。 PHP的运行,但我一直得到的东西除了/或/ wp-admin /之外的其他东西,所有其他永久链接给404s。 我已经做了所有的事情来完成这个工作,但我不知道我做错了什么。 请在下列configuration中指出我的错误: server { listen 80; server_name dev.example.com; client_max_body_size 20m; server_tokens off; root /srv/dev.example.com; index index.php index.html index.htm; location / { deny all; } location /my-site { allow all; try_files $uri $uri/ /index.php?$args; auth_basic "Restricted"; auth_basic_user_file /etc/nginx/auth.d/.htpasswd-my-site; location ~ \.php$ { include fastcgi_params; fastcgi_index index.php; fastcgi_pass php5-fpm-sock; fastcgi_param SCRIPT_FILENAME […]