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've just followed this tutorial on setting up name-based virtulization in Apache, and it worked really well.
The tutorial basically got you to add a config file to sites-available called yourdomain.com, and then link it to sites-enabled.
By default, apache includes two site config files in sites-available, default and defualt-ssl.
Should you edit these files or remove the link form the sites-e
I'm trying to simply rewrite:
http://www.example.com/home
to
http://www.example.com/home.php
I'm not using .htaccess, but setting rewrite rules in a vhost:
<VirtualHost *:80>
DocumentRoot /Users/me/Sites/mysite
ServerName mysite.air.local
RewriteEngine On
RewriteLog /var/log/apache2/rewrite.log
RewriteLogLevel 6
RewriteRule ^/home$ home.php
<Directory
File:
wmp12
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'm new to this so please bear with me.
As I understand, it's like this, correct me where I'm wrong:
So i just edit the default config in /etc/nginx/sites-available/default and use it right away. Now I want to host more than 1 site on the server.
I am having some problems with Apache2 configuration.
Originally I had a server with nginx running multiple websites. I added Varnish in front to be on port 80 and changed my nginx files to 8080. The problem I'm having is that only one site is working while the others are not.
That time of year has come again, the feeling of excitement and freedom is in the air, official Ubuntu sites have started going down frequently , yes its time for a new Ubuntu.