Description
Now I have setup up a site in Apache using vhost.
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.
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 want to offer custom subdomains for my customers.
I am having some problems with Apache2 configuration.
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
I have a bunch of URLs which all point to the same directory on the server in apache's conf files.
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've just set up a aws ubuntu instance, I have apache2, mysql-server etc and have configured a vhost, added it to apache and restarted apache.
My virtual host config is:
<VirtualHost *:80>
ServerAdmin ss@ss.com
ServerName mysite.ec2-xx-xx-xx-xx.compute-1.amazonaws.com
DocumentRoot /mnt/my_site
<Directory />
Options FollowSymLinks
AllowOverride