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
Thought I would see if anyone can help with this apache2 set up running on ubuntu server 12.04.
I have set up my virtualhost files as:
<virtualHost *:80>
ServerAdmin webmaster@mysite.com
ServerName www.mysite.com
ServerAlias mysite.com
DocumentRoot /var/www/myfiles
</VirtualHost>
I have tried to reverse the Name and Alias but cannot connect using www.
Description
Now I have setup up a site in Apache using vhost.
I am following this guide to intall redmine.
It has a section on apache2 virtual host configuration.
sudo nano /etc/apache2/sites-available/mysite
<VirtualHost *:80>
ServerName my_domain.com
DocumentRoot /var/www/redmine
ServerAdmin user@example.com
LogLevel warn
ErrorLog /var/log/apache2/redmine_error
CustomLog /var/log/apache2/redmine_access combined
<Directory /var/www/redmine
I want to offer custom subdomains for my customers.
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've enabled the 'www' subdomain host record that points to mysite.com on my domain registrar's DNS editor a few days ago and the changes have propagated.
However I would like to temporarily disable it.
1) Why does www.mysite.com work even though I've commented out the following code in /etc/apache2/sites-available/mysite?
#<VirtualHost *:80>
#ServerAlias www.mysite.com
#DocumentRoot /myw
I have a Django website where some of the URLs need to be served over HTTPS and some over a normal connection.
It's running on Apache and using WSGI.
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