I want to offer custom subdomains for my customers.
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.
I am having some problems with Apache2 configuration.
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.
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
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 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 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.