subdomain

ASP.NET MVC - cross sub domain authentication/membership

别说谁变了你拦得住时间么 提交于 2019-12-02 18:33:17
Hit a roadblock while implementing a sub domain based language switcher (en.domain.com loads English, jp.domain.com loads Japanese). How do I get a single membership system to work across multiple sub domains (ASP.NET MVC C#)? Saw something about adding domain="domain.com" to <forms > entry in web.config. Did that, but does that work when testing on local visual studio development web server? Try creating the cookie yourself. In AccountController you'll find this: FormsAuthentication.SetAuthCookie(userName, createPersistentCookie); that "creates and adds to the cookie collection". It doesn't

IIS 7 SSL for multiple sites with a single IP

a 夏天 提交于 2019-12-02 17:59:33
I have a single IIS 7 server with a single IP address. Site 1 has an SSL cert for www and Site 2 has a wildcard SSL cert for various subdomains. Both sites use host headers to direct traffic off the single IP address. However, when I try to access a subdomain on Site 2 I see a browser warning telling me that the SSL cert is wrong and shows me the information for Site 1. Help! Until SNI is fully supported, you can only have one certificate per IP address. If you can get a certificate that covers both sites (a wildcard or a UC certificate, for example), you can set up SSL Host Headers to allow

Does Apache2 support virtual hosting of subdomains?

允我心安 提交于 2019-12-02 17:21:21
Currently my Apache server is set up like so <VirtualHost *:80> ServerName www.example.com ServerAlias example.com DocumentRoot /var/www </VirtualHost> The problem is that everything below /var/www is accessible from everywhere else. If I have a web page /var/www/john/bio.html , then that web page could borrow scripts/pictures from var/www/jane/ I want to set up my Apache server like so <VirtualHost *:80> ServerName www.example.com ServerAlias example.com DocumentRoot /var/www </VirtualHost> <VirtualHost *:80> ServerName www.john.example.com ServerAlias john.example.com DocumentRoot /var/www

How to configure subdomains for Apache2 on Ubuntu?

隐身守侯 提交于 2019-12-02 17:19:20
I followed these instructions to configure subdomains for apache . I can access the subdomain using http://localhost/test though I cannot access it via http://test.localhost . How can I realize the latter? # /etc/apache2/sites-available/test.localhost <VirtualHost *:80> # Server name ServerName test.localhost # Document root DocumentRoot /var/www/test/ # Custom log file locations ErrorLog /var/www/test/logs/error.log CustomLog /var/www/test/logs/access.log combined </VirtualHost> As Mark B already answered correctly the problem was a misconfiguration in /etc/hosts . The correct configuration

Wildcard subdomains with dnsmasq

雨燕双飞 提交于 2019-12-02 16:37:08
I have a device that is already mapped to domain.tld . I now want to create a wildcard for all subdomains *.domain.tld so that they are mapped to the ip of domain.tld , too. How do I do this with dnsmasq ? EkriirkE In the dnsmasq.conf file, add the line address=/.domain.tld/192.168.0.1 But use the IP you actually want as that end bit While the accepted answer may have solved the author's problem, it is misleading as it suggests that the leading dot would match subdomains only, which is not true. dnsmasq ignores any leading dots, so that address=/domain.tld/192.168.0.1 is equivalent to address=

Should I delete the cgi-bin folder in a subdomain I just created?

大城市里の小女人 提交于 2019-12-02 16:02:38
Using cpanel on my hosting account, I created a subdomain - e.g. www.clothing.mysite.com A cgi-bin folder was automatically created in the directory for clothing.mysite.com. Do I need it? I'm only using the subdomain to install wordpress on it. I don't really understand what the cgi-bin folder is for and I'm happy to leave it if it doesn't harm anything. Any thoughts? Thanks guys! You can safely delete it. "cgi-bin" is hardly ever used these days. cgi-bin historically was the only place where executable or script code (binaries, shell scripts, etc.) could be stored. It is mostly a historic

subdomain changes image path

半腔热情 提交于 2019-12-02 15:38:59
问题 I have one dynamic website with back end control panel which contains ckEditor for data entry. ckEditor inserts images with path like: /userfiles/image1.jpg and when I call page to display on user interface it shows perfect if I access it from main url but due to some reasons few section we have to move on a sub folder and when I access same page from that subdomain it fails in displaying image. when I checked url of the image, it shows like: app1.mysite.com/userFiles/image1.jpg But the

Set up custom subdomain for Jekyll Blog hosted in Github Pages

瘦欲@ 提交于 2019-12-02 14:15:31
I created a Jekyll-powered blog and am hosting it with GitHub Pages. Now, I want to set up a subdomain (blog.example.com), but can't make it work. I have added a CNAME file with the text: blog.example.com. And I have added to A records in my Dreamhost account for the subdomain, both pointing to 204.232.175.78, provided by GitHub. Any idea about what the missing part is, or if I'm doing something incorrectly? janos The setup is different for domains like example.com and sub-domains like blog.example.com . In case of a sub-domain: blog.example.com Go to Domains | Manage Domains in your webpanel

Subdomain htaccess issue in Magento

若如初见. 提交于 2019-12-02 14:14:50
问题 public_html/ # www.domain.com public_html/subdomain # subdomain.domain.com public_html/.htaccess public_html/subdomain/.htaccess I have a subdomain subdomain.domain.com I have .htaccess file under public_html This htaccess file contains this code: Options -MultiViews RewriteEngine On RewriteBase / ReWriteCond %{HTTP_HOST} ^subdomain\.domain\.com$ ReWriteCond %{REQUEST_URI} !^/subdomain/ ReWriteRule ^(.*)$ /subdomain/$1 I need to install magento inside subdomain folder .htaccess file inside

Azure DNS Zone name servers updated to Domain registrar but unknown host even after 4-5 hours

北战南征 提交于 2019-12-02 13:34:12
How to setup root domain ( example.com ) to point to Azure DNS zone? I am not sure whether it is because of propagation lag, but if I try to access example.com ( for example here ), it gives me unknown host. My Steps : Created the Azure DNS Zone for the example.com. Created the www.example.com DNS zone. Delegated subdomain to Azure DNS zone created in step #1 above for www Name server record. Logged in to domain registrar and updated the 4 name servers of step 1 DNS Zone name servers as shared by portal.azure.com. Note: It is 4-5 hours now and even now, accessing example.com ( dummy ) gives me