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.
Description
Now I have setup up a site in Apache using vhost.
I have 2 sites-enabled, with server_name as follows:
server_name www.mysite.com mysite.com
and
server_name dev.mysite.com
Problem: When I access the website via its IP address, by looking at the access/error logs, it appears that nginx is serving off the root of dev.mysite.com.
How does nginx decide which to serve?
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 interested in running a reverse proxy with 2-3 virtual machines behind it.
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?
How do I redirect requests coming to http://blog.mysite.com to http://mysite.com/blog?
Reading the apache docs on when not to use the rewrite mod, I tried a simple redirect e.g.
Redirect http://blog.mysite.com http://mysite.com/blog
But when I visit http://blog.mysite.com, it doesn't redirect me. Any suggestions?
the error says:
Virtualhost mysite.com has no server environment set, request will not be honoured
my vhost file is:
<VirtualHost *:80>
ServerName mysite.com
ServerAdmin web@mysite.com
DocumentRoot "/srv/d_servpa1/www/mysite.com/htdocs"
<Directory "/srv/d_servpa1/www/mysite.com/htdocs">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
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