subdomain

Forms Authentication - Redirect Back to Original Domain

筅森魡賤 提交于 2019-12-06 15:17:42
问题 Example: Application = https://test2.mytest.com/MyApplication/Download.aspx The application has forms authentication enabled in the web.config: <authentication mode="Forms"> <forms loginUrl="https://test.mytest.com/Login/" name=".ASPXAUTH"/> </authentication> <authorization> <deny users="?"/> </authorization> When accessing the application it correctly redirect to the login page: https://test.mytest.com/Login/?ReturnUrl=%2fMyApplication%2fDownload.aspx However, after successfully logging in

ssl wildcard sub domain www.sub.domain.com

一个人想着一个人 提交于 2019-12-06 12:11:25
I've purshase a wildcard ssl certificat for *.domain.com. I use: startssl provider for ssl certificat Apache VirtualHost I want every request to be redirected to HTTPS NO-WWW I managed to do this: http ://sub.domain.com => https ://domain.com is ok http :// www .sub.domain.com => https ://sub.domain.com is ok BUT https ://www.sub.domain.com => https ://domain.com is NOT OK (NET::ERR_CERT_COMMON_NAME_INVALID) Can you help me ? <VirtualHost *:80> ServerName sub.domain.com Redirect permanent / https://sub.domain.com </VirtualHost> <VirtualHost *:80> ServerName www.sub.domain.com Redirect

htaccess mod_rewrite: Force using https, but not on subdomains

拜拜、爱过 提交于 2019-12-06 11:29:43
I want to force users to use https on my site. I use this piece of code in the htaccess: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.mysite.com/$1 [R,L] It all works fine, expect that it forces https on subdomains too (eg. subdomain.mysite.com is forced to https as well). I want to force only my domain to https, and not any of the subdomains. How to do this? Here's what should work: RewriteEngine On RewriteCond %{HTTP_HOST} (www\.){0,1}mydomain\.com [NC] RewriteCond %{SERVER_PORT} 80 RewriteRule (.*) https://www.mysite.com/$1 [R,L] Please tell me if it did the

Creating an error page for a subdomain that doesn't exist

浪尽此生 提交于 2019-12-06 11:23:15
问题 I've got a number of subdomains on one of my sites. When someone goes to a subdomain that doesn't exist, I want to redirect to a 404 page on my main domain. noexist.example.com --> example.com/404.php?subdomain=noexist (or without the query string if HTTP_REFERRER can give me that info) I'm running LAMP on a VPS with cPanel installed. I can edit the DNS Zone file for the domain via WHM. 回答1: After a few hours ticketing my server's support center, I finally got wildcard subdomains set up. Now

redirect subdomain to same subdomain name but different domain name

﹥>﹥吖頭↗ 提交于 2019-12-06 11:22:19
i have site called exmaple.com have a lot of subdomains test1 , test2 , test2.example.com how could i redirect subdomains with exact subdomain but to another domain name for example test1 , test2 , test3.example.net thanks This may work. Put it in your .htaccess. RewriteEngine On RewriteCond %{HTTP_HOST} (.*).example.com RewriteRule (.*) http://%1.example.net/$1 [R=301,QSA,L] Haven't tested it, but it should give you a start. Use %1 %2 etc. to grab regex-match groups from the RewriteCond. As you probably know, $1 $2 matches regex groups from the RewriteRule Off the top of my head, this is

create a sub website of the parent website for each user(sub domain or subfolder)

大憨熊 提交于 2019-12-06 11:16:32
My client asked me to create a new sub folder or sub directory for each user. My main URL is like www.mysite.com , after creating a user the user should be able to access it as www.mysite.com/userName or www.userName.mysite.com . Is it possible to do through JSP, i dont know exact what key words should be used to search in google for this problem. I use JSP, Apache tomcat 5.5, mysql 5.0 for my development. Do i have to copy all the contents to subfolder do this? If so where i could get some help or tutorial? that can be done in httpd.conf e.g. ServerName www.userName.mysite.com RewriteCond %

Redirect subdomain request to subdirectory + https (using .htaccess)

最后都变了- 提交于 2019-12-06 11:01:20
I've got some issues with a .htaccess that I just can't get to work. Hope someone could solve this one. I have a SSL certificate on the www.-domain on an Apache server. I want all http://subdomain.domain.com requests on a specified list of subdomains to redirect to https://www.domain.com/subdomain . The second problem is I don't have a wildcard certificate that works on non-www. requests, requests to https://subdomain.domain.com will result in an "Untrusted Connection" alert. So this also has to be solved, but maybe it requires another type of redirect? What conditions and rules could achieve

Subdomain under Apache to proxy into Tomcat

陌路散爱 提交于 2019-12-06 10:50:59
问题 I'm having trouble with making a subdomain to my Windows computer while using AJP to proxy to Tomcat. This is what I have in my httpd.conf file: <VirtualHost *:80> ServerName subdomain.localhost ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / ajp://localhost:8009/folder/ ProxyPassReverse / ajp://localhost:8009/folder/ <Location /> Order allow,deny Allow from all </Location> </VirtualHost> The subdomain has been added to `c:\windows\system32\drivers\etc\hosts

How to clear cookies for specific domain in iOS?

坚强是说给别人听的谎言 提交于 2019-12-06 09:29:05
问题 I have searched almost all questions on StackOverflow for answer to my question. I haven't found any useful link or tutorial saying which way is best to clear cookies for particular domain. So please if someone could help me. 回答1: I found solution myself. If you wish to delete entire cookies in your UIWebView do this. NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage]; NSHTTPCookie *cookie; for (cookie in [storage cookies]) { NSLog(@"%@", cookie); // Print the

App Engine - Custom Domain pointing to subdomain

白昼怎懂夜的黑 提交于 2019-12-06 08:47:55
I hear that now we can do wildcard subdomains on google app engine (I haven't tried it myself, but I believe that's been a new feature added), but can we have a domain point to it? So new.example.com (works?) newexample.com -> new.example.com (does this work? where newexample.com is acting as new.example.com) The way I envision newexample.com, this would work as newexample.com/blog in the url, but app engine would support it as new.example.com/blog I guess I am trying to emphasize that I am NOT looking for domain fowarding where newexample.com just forwards users to new.example.com Thanks!