我使用OpenShift应用程序设置了一个自定义域。 (这是一个博客)我已经设置CloudFlare的页面规则redirectmydomain.com – > www.mydomain.com现在基本上,我有两个别名在OpenShift帐户,即为我的博客mydomain.com和WWW。 mydomain.com。 Godaddy指向CloudFlare名称服务器。 但谷歌显示我的域名(www.mydomain.com)和OpenShift子url(name-myapp.rhcloud.com)。 如何让Google显示www.mydomain.com的结果并避免重复列表。
假设我有一个托pipe服务提供商的example.com,因为托pipe不提供先进的function,所以我在B托pipe服务商租用VPS服务器。 在这种情况下,我已经使用apache2在B托pipe提供程序中设置了名为one.example.com和two.example.com虚拟主机,并且可以在本地Web浏览器中访问。 问题是,通过这样设置,我如何从托pipe提供商子域redirect到B托pipe提供商中的每个虚拟主机?
我有一个安装在服务器上的SSL证书只能覆盖域,而不是子域 所有stream量都使用apacheconfiguration文件redirect 当我设置子域来redirect子域时,浏览器会提醒您,由于SSL与域不匹配,网站不安全。 我想赶上的子域,它被强制为HTTPS,并将其redirect到我需要去的地方,因为一旦它强制为HTTPS,就会抛出一个错误 我的Apacheconfiguration <VirtualHost *:80> ServerName aliahealthcare.com Redirect permanent / https://aliahealthcare.com/ </VirtualHost> <VirtualHost *:443> //blah </VirtualHost>
我想将旧域的子域redirect到新域的目录。 例如forum.old-domain.com应该redirect到new-domain.com/forum从old-domain.comredirect到www.new-domain.com正在工作,除了子域。 htaccess看起来像这样: Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^forum\.old-domain\.de [nc] rewriterule ^(.*)$ http://www.new-domain.de/forum/$1 [r=301,nc,l] rewritecond %{http_host} !^www.new-domain.de [nc] rewriterule ^(.*)$ http://www.new-domain.de/$1 [r=301,nc,l] # rewritecond %{http_host} ^forum.old-domain.de [nc] # rewriterule ^(.*)$ http://www.new-domain.de/forum/$1 [r=301,nc,l] rewritecond %{http_host} ^old-domain.de [nc] rewriterule ^(.*)$ http://www.new-domain.de/$1 [r=301,nc,l] rewritecond %{http_host} ^www.old-domain.de [nc] rewriterule ^(.*)$ http://www.new-domain.de/$1 [r=301,nc,l] 问题是,forum.old-domain.comredirect到www.new-domain.com,但我希望它redirect到www.new-domain.com/forum。 有什么build议么? 我错过了什么? 提前致谢! 编辑: 添加虚拟主机条目: […]
UseCanonicalName Off ServerAlias *.mysite.info ServerName mysite.info VirtualDocumentRoot "/var/lib/jenkins/workspace/%-3/builds" ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined <Directory /var/lib/jenkins/workspace> Require all granted Options FollowSymLinks Includes ExecCGI AllowOverride All Order deny,allow Allow from all </Directory> 我试图configurationApache,使每个jenkins的工作有它自己的私人三级域。 当我访问我的项目.mysite.info和Apache返回我/ var / lib / jenkins / workspace / myproject 现在我想为我的项目(阿尔法,testing版)有两个版本,所以我想打电话给我的jenkins的工作alpha.myproject和beta.myproject 这样做的问题是阿尔法。 myproject .mysite.info将会redirect到/ var / lib / jenkins / workspace / myproject,因为 myproject将会是由%-3指定的右边的第三个元素。 […]
我有几个应用程序在Tomcat服务器下。 所以我想为每个应用程序的子域。 因此,如果用户想要访问应用程序,必须将https://app1.domain.com …分别访问Tomcat应用程序domain.com/app1/,domain.com/app2/。 我成功地configuration了apache和通配符证书来使用SSL。 但是,当访问每个应用程序的子域时不会redirect。 刚刚得到一个ERR_TOO_MANY_REDIRECTS错误。 这里是ssl.conf文件: <VirtualHost 10.0.0.1:443> ServerAdmin [email protected] DocumentRoot "/var/www/html" ServerName www.domain.com ServerAlias domain.com ErrorLog logs/ssl_error.log DirectoryIndex index.html SSLEngine on SSLProtocol All +TLSv1.2 -SSLv2 -SSLv3 SSLCertificateFile /opt/certs/domain.com.crt SSLCertificateKeyFile /opt/certs/domain.com.key SSLCertificateChainFile /opt/certs/domain.com.intermediate.crt <Directory "/var/www/html"> Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost 10.0.0.1:443> DocumentRoot "/var/www/html/app1" ServerName app1.domain.com UseCanonicalName Off DirectoryIndex index.html ProxyRequests […]
www.brandname.com是一个Heroku托pipe的Rails应用程序。 brandname.wpengine.com是WPEngine上的一个WordPress博客。 我知道我不能使用DNS(CNAME)将www.brandname.com/blog映射到brandname.wpengine.com 。 我可以将blog.brandname.com映射到brandname.wpengine.com 。 但是我已经阅读了很多关于子文件夹和子域的文章以及对SEO的影响。 有时看起来并不重要,有时候也是如此。 那么,铁路应用程序的机架redirect呢? 有人在这里回答类似的问题: https : //stackoverflow.com/questions/17327761/make-an-existing-wordpress-blog-a-subdirectory-of-a-rails-app 你怎么看 ? 链接Heroku应用程序和WPEngine博客以最大化SEO的最佳方式是什么? blog.brandname.com或机架redirect? 干杯 ps:MichaelHampton评论后编辑。
我使用url rewrite 2.0模块为一个子域设置了一个httpredirect到https。 这是web.config代码。 <rule name="HTTP to HTTPS redirect" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true" /> </conditions> <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" /> </rule> 这个redirect在networking中工作。 换句话说,store.domain.comredirect到https://store.domain.com 。 但是,在networking之外,store.domain.com不redirect,也根本不可访问。 在networking内部,可以访问https://store.domain.com 。 我错过了什么? 谢谢!
我正在运行带有多个本地接口的pfSense 2.3.2-RELEASE-p1,每个接口都configuration了一个DHCP服务。 DNSparsing器服务configuration为注册DHCP租约和DHCP静态映射。 在系统 – >常规设置 – >域,我有admin.mydomain.eg设置,并为每个DHCP服务器我有一个单独的域名configuration为代表不同的networking。 这个想法是,我可以有一个主机与不同的networking上的接口,我用FQDN访问。 ADMIN – 192.168.10.0/34(默认admin.mydomain.eg ) 首页 – 192.168.20.0/24(home.mydomain.eg) SERVICE – 192.168.30.0/24(service.mydomain.eg) 问题是,只有默认域似乎是唯一一个注册DHCP租约。 例如,我打开host-01上的ADMIN接口,获得192.168.10.16的DHCP租用和host-01.admin.mydomin.eg的DNS条目。 然后我打开SERVICE接口,收到192.168.30.54的DHCP租约,但没有host-01.service.mydomain.eg DNS条目。 快速挖掘显示,该host-01.admin.mydomain.eg实际上现在指向192.168.30.54 。 我想我必须在DNS服务中缺less一些configuration来支持多个本地域,但我不知道是什么。 有没有人试过这个成功?
我有一个Cloudflare / Nginx(v1.8.0)/ Apache服务器configuration与大量的caching。 目标是caching主域,但允许通过所有caching绕过的子域访问站点。 所以,我正在寻找一种将“ https://www.domain.tld/target ”redirect到“ https://nocache.domain.tld/destination ”的通用方式 与request_uri的简单位置匹配对于非www域变体已经足够了,但是如果请求通过www子域进入,就像许多网站一样,那么它会redirect到nocache.www.domain.tld存在。 我尝试了各种不同的方法来删除“www”。 子string,但似乎没有工作。 编辑 这是我的非工作Nginx的服务器configuration: server { listen 80 default_server; server_name localhost; set $PROXY_DOMAIN_OR_IP $host; if ( $request ~* ".*(www\.)(.*)\/target" ) { set $host_without_www $2; return 302 $scheme://nocache.${host_without_www}\/destination; }