subdomain

How do I disable HTTPS on Heroku

半腔热情 提交于 2019-12-03 04:48:11
I created a site and put it on Heroku. I then added a custom domain (e.g. "site.example.com") in the Heroku control panel and I pointed the DNS to my Heroku address. This works fine, but when I visit the site, I get a big browser warning, saying the certificate is for herokuapp.com, not for "site.example.com". How do I turn off HTTPS or fix it in some other way? (I don't need my own SSL certificate for the site.) Note : It's not Heroku's fault if your app is forcing people onto SSL. Check production.rb to make sure it doesn't say: config.force_ssl = true If it does, change it to false: config

How to test nginx subdomains on localhost

混江龙づ霸主 提交于 2019-12-03 04:14:53
问题 I want to test nginx subdomains before uploading config to the server. Can i test it on localhost? I try server { listen 80; server_name localhost; location / { proxy_pass http://localhost:8080; } } server { listen 80; server_name sub.localhost; location / { proxy_pass http://localhost:8080/sub; } } And it does not work. Shoulld i change my hosts file in order to make it work? Also, after uploading site to the server should i change DNS records and add sub.mydomain.com? 回答1: Yes, add '127.0.0

Does Apache2 support virtual hosting of subdomains?

拜拜、爱过 提交于 2019-12-03 03:58:57
问题 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>

How to setup sub-domains like blogspot

冷暖自知 提交于 2019-12-03 03:49:53
What should do to setup a sub-domain for the users when they sign-up into my site. What are the infrastructure required? I am using Linux servers. M.N You can make a CNAME entry/ A Record in your DNS settings, for each subdomain A CNAME record is a record in your Domain Management Settings that allows you to control a subdomain of your domain. To automate it along with registration, you can write a script which is executed for each user, when s/he registers. You can refer to this link, as well, for a step-by-step process for Apache: How to setup subdomains in apache (since you mentioned Linux,

How to create subdomains for IIS7 programmatically?

人走茶凉 提交于 2019-12-03 03:45:26
I'm writing a SaaS app in C#/ASP.NET, hosted with IIS7. I want to create a personalized subdomain for every customer that signs up, i.e. fred.mydomain.com, bob.mydomain.com, each of which will point to the same app, just with a different skin per customer. How do I create these subdomains programmatically? Use URL Rewrite for IIS7 to map all requests like user.mydomain.com (where user is not www, mail or other existing real subdomains) to mydomain.com/myapp?id=user Then in the script handle whatever theming you need. You do not need to add rule for every user created. Just create one general

Rails: Routing subdomain to a resource

浪尽此生 提交于 2019-12-03 03:15:56
Is it possible to map a subdomain to a resource? I have a company model. Currently, using subdomain_fu, my routing file contains: map.company_root '', :controller => 'companies', :action => 'show', :conditions => { :subdomain => /.+/ } My Company model contains a "subdomain" column. Whilst this works as intended, it's a named route and isn't restful. Essentially, I need to map "name.domain.com" to the show action for the companies controller. Is a named route the way to go, or can I use a resource route? I don't know of a way to do this with map.resources . It does accept a :conditions option

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

こ雲淡風輕ζ 提交于 2019-12-03 02:30:57
问题 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! 回答1: You can safely delete it. "cgi-bin" is hardly ever used these days. 回答2: cgi-bin historically was the only

Forms Authentication ReturnUrl and subdomain for single sign-on

三世轮回 提交于 2019-12-03 02:07:30
I have a domain http://abc.com and a subdomain http://sub.abc.com . I'm implementing single sign-on between the two sites by sharing the forms authentication cookie. This is implemented by having both sites share the validationKey and decryptionKey in the machineKey. When the user hits a page in the subdomain I want the user authenticated in the root domain and redirected back to the subdomain. The user is redirected to the login page currently but the ReturnUrl wants to redirect to the root site. Eg. Currently: http://abc.com/login.aspx?ReturnUrl=%2fsecure%2fdefault.aspx but I want: http:/

site 5x faster via mod_rewrite, but CSS images are broken

不问归期 提交于 2019-12-03 00:45:48
I am using .htaccess to accelerate a site with the following redirects: request for http://example.com/images/name.jpg routed to http://i.example.com/name.jpg request for http://example.com/css/name.css routed to http://c.example.com/name.css From listening to the Stack Overflow podcast, I learned that this could make a site faster, since the browser can download more files simultaneously (apparently two streams per domain, although this is unconfirmed). Indeed, the difference is dramatic; the page loads about five times as fast ! I have not touched the original folders and images -- I am just

PHP url functions and subdomains

∥☆過路亽.° 提交于 2019-12-03 00:40:21
I have a website thenoblesite.com . It has some subdomains i.e. download.thenoblesite.com wallpaper.thenoblesite.com etc. Pages for subdomains are present in the main htdocs folder i.e. httpdocs/download <- download.thenoblesite.com httpdocs/wallpaper <- wallpaper.thenoblesite.com Problem is that I am using $_SERVER['DOCUMENT_ROOT'] . '/css'; for css folder and other common folders(graphics, includes, script etc). However in the subdomain page download.thenoblesite.com , $_SERVER['DOCUMENT_ROOT'] will refer to download.thenoblesite.com root folder, not the main thenoblesite.com root folder