subdomain

nginx http to https redirection issue

你说的曾经没有我的故事 提交于 2019-12-11 12:17:05
问题 I am trying to redirect http://example.com , https://example.com , http://www.example.com to https://www.example.com . Servers listening to both http and https requests via 443 port through ELB. nginx config : server { listen 443; server_name example.com; return 301 $scheme://www.example.com$request_uri; } server { listen 443 default; server_name www.example.com; //ssl stuffs } only http://example.com and https://www.example.com is working as expected.But http://www.example.com is going to

Adding subdomain support into lighttpd

牧云@^-^@ 提交于 2019-12-11 12:08:16
问题 I have a lighttpd server with website placed in /home/httpd/example.com/httpdocs and there I have a file called file.php . When I type http://en.example.com/file.php I would like to display file.php that is in default website directory (mentioned above). So I used document-root described here: http://redmine.lighttpd.net/wiki/1/Server.document-rootDetails in this manner: $HTTP["host"] =~ "en.example.com/file.php" { server.document-root = "/home/httpd/example.com/httpdocs/" } But unfortunately

How to create dynamic subdomains in codeigniter with htaccess

放肆的年华 提交于 2019-12-11 11:52:26
问题 am using codeigniter, I want to set up .htaccess to make dynamic subdomains. And I cannot figure out how. I am trying to create custom domain names using .htaccess Currently my URL looks like this: http://www.example.com/public/stores/shop/products I need it to look like this: http://www.shop.example.com/public/stores/products but it throws a 404? stores - controller name, shop - dynamic name The problem is that each shop should get a sub-domain automatically.Would be great if you could share

Need to redirect folders like sub-domain within same domain using htaccess

旧街凉风 提交于 2019-12-11 10:09:40
问题 Currently my URL is like http://vidleap.com/nov5and151/index.html and now I want to redirect this URL like http://nov5and151.vidleap.com/index.html. So how to do it via htaccess? I am using below code but it's not working. <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L] RewriteCond %{HTTP_HOST} ^(?:www\.)?vidleap\.com [NC] RewriteRule ^([^/]+)(/.*)?$ http:/

Subdomain to Port redirect

泄露秘密 提交于 2019-12-11 09:54:48
问题 I created a AWS instance to hold my jenkins and archiva services 5 days ago. I already have my own domain, and created DNS Subdomain jenkins.mydomain.com and archiva.mydomain.com entries to redirect to my AWS instance. But, I wanna use something like that: jenkins.mydomain.com instead of jenkins.mydomain.com:8080 archiva.mydomain.com instead of archiva.mydomain.com:8081 Someone can help me? I already instaled a apache2 service too. Editing... to make more clear because i don't figure out

.htaccess redirect ~ [fake-subdomain.domain.com/*] to [domain.com/*]

梦想的初衷 提交于 2019-12-11 09:26:49
问题 I have been searching for this for many hours and I have no idea how to accomplish that. I need to make the following 301 permanent redirect: When people visit http://web.domain.com.br/something/ They should be redirected to http://domain.com.br/something/ Where (important!), the /something/ is not a real directory, it is a sub-blog from the wordpress multisite installation. There are another rules on the root .htaccess file already in action. They are: RewriteEngine On RewriteBase /

What is smallest valid domain name?

百般思念 提交于 2019-12-11 08:47:36
问题 Just curious technically what is valid domain name t. <- is that valid localhost is valid I remember reading something very short without even two words 回答1: The other replies give you already some hints but I think they lack to separate two cases because your question is vague. In fact I see 3 points: what is technically valid, per the DNS syntax rules? what can work today on the IANA root? what works today from end clients, like browsers? The first point is covered by Calle Dybedahl ,

Is it possible to rewrite subfolder to subdomain with IIS7?

本小妞迷上赌 提交于 2019-12-11 08:37:00
问题 I have an asp.net application on sub domain sub.domain.com I want to access this application by typing www.domain.com/sub is it possible with IIS7? 回答1: Assuming you're happy to manually configure the application at each subdomain: In IIS Manager, go to Sites, and select your www.domain.com site. Right click it, "Add Application" and specify the alias "sub" and point the physical path to the same location as sub.domain.com Select the same application pool as the sub.domain.com site.

.htaccess rewrite subdomains

无人久伴 提交于 2019-12-11 08:34:40
问题 Here is my current code: RewriteCond %{HTTP_HOST} !^example\.com [NC] #RewriteCond %{REQUEST_URI}!^something RewriteCond %{HTTP_HOST} ^([^.]+)\.example\.com RewriteRule (.*) something/%1/$1 [QSA,L] My goal is to rewrite http://*.example.com/whatever to http://example.com/something/*/whatever , assuming * is the same for both and whatever is the same for both. However, I believe this is causing an infinite loop somehow, so I added that commented out line (RewriteBase is / btw), but if I

Redirect a subdomain to another domain's subfolder and keep the subdomain's URL

社会主义新天地 提交于 2019-12-11 08:08:54
问题 I'd like to redirect a subdomain, say http://sub.domain.com to another domain's subfolder like https://unrelatedsub.otherdomain.com/domain.com/ as well as everything inside, so that https://unrelatedsub.otherdomain.com/domain.com/u/r/l/file can be accessed by going to http://sub.domain.com/u/r/l/file Also, if it is possible, the browser's address bar should display the subdomain's url (http://sub.domain.com/u/r/l/file) While searching for solutions, I came accross this possibility