I've looked at many SE threads and done various google searches and can't figure out why i can't redirect www.mysite.com to mysite.com on my nginx server.
The 1st server block does the http://mysite.info -> https://mysite.info redirect as you'd expect.
I've set up Nginx to handle all my static files else proxy_pass to a Node.js server. It's working fine but I'm having difficulty rewriting the url so that it remove the .html file extension.
I have a subdomain of my site pointed to a rails app at mysite.herokuapp.com. I bought a certificate from godaddy and seem to have that all set up correctly.
Hi i have a website as www.mysite.com and it has following pages
www.mysite.com/news
www.mysite.com/photo
www.mysite.com/download
how can i point
news.mysite.com to www.mysite.com/news
photo.mysite.com to www.mysite.com/photo
download.mysite.com to www.mysite.com/download
I have cpanel and shell access to my hosting.
Any help would be much appreciated, thank you.
I'm totally stumped. I've looked at about a dozen tutorials explaining how to configure Nginx to run PHP and a Codeigniter app. I can't get anything to work and worse yet typing mysite.com into the browser gives me a blank screen with no errors in my error log so I'm not sure where to start.
I have Server A which hosts www.mysite.com
I want to create and host a site on Server B, but configure it to: www.mysite.com/theSiteAtServerB
TheSiteAtServerB is a completely different site from www.mysite.com and is on a completely different server but the client wants to use www.mysite.com and serve the content for TheSiteServerB under the same url.
Is this at all possible?
I have edited my apache vhost file in /etc/apache2/sites-enabled to add the following:
<VirtualHost *:80>
ServerName www.mysite.cn
ServerAlias mysite.cn *.mysite.cn
DocumentRoot /home/user/static/mysite/cn
</VirtualHost>
It still points to the default site on the server when i browse to mysite.cn but when i enter anything along the lines of ww3.mysite.cn it point to the new correct
I have website content like
mysite.com/index.php
mysite.com/apps
Now I want to put a maintenance page so people who will visit to mysite.com or mysite.com/index.php will able to see maintenance page however visitors will go to mysite.com/apps or mysite.com/apps/index.php will not redirect to maintenance page.
I already tried these:
This is redirecting both root and subfolder to maintenance pa
I'm trying to set up a simple static website, and I have an issue with nginx that's complicated by a number of things, most notably the fact that my ISP blocks all inbound port 80 traffic.
First, I got a web forward set up so that www.mysite.com will redirect to mysite.com:8000, and then I set up my router to forward port 8000 to my server running nginx.