I configured my DNS (bind9) to accept every subdomain, using a wildcarded 'A' record :
*.mydomain.tld.
I have a machine (centos 5) with one external ip address. On that machine I have many virtual hosts with a few different top level domain names and sub-domains under those eg.
sub1.domain1.com
sub2.domain1.com
sub3.domain1.com
sub1.domain2.com
sub2.domain2.com
sub1.domain3.com
And so on...
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
Is it possible to setup an Apache virtual host without a domain name, I just want to use my IP to test my website until I get a domain name.
Examples in Apache documenation only seem to have domain name aliases like so
<VirtualHost *:80>
ServerName www.otherdomain.tld
DocumentRoot /www/otherdomain
</VirtualHost>
I have problems with apache on MAC OS Lion 10.7.5.
I have VirtualHosts:
<VirtualHost *:80>
ServerName devel.dev
DocumentRoot /var/www
</VirtualHost>
<VirtualHost *:80>
ServerName test.dev
DocumentRoot /var/www
<Directory "/var/www">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</
I installed the Apache.
I've got multiple named vhosts on an Apache web server (CentOS 5, Apache 2.2.3).
Each vhost has their own config file in /etc/httpd/vhosts.d and these vhost config files are included from the main httpd conf with...
I have been trying to setup my local system so that typing in a local tld goes to the relevant htdocs subfolder, but cannot get it to work.
I am currently for every project, creating a folder in my htdocs e.g.
I've been struggling with this, basically what I want is this:
A virtual domain to run on the 80
another virtual domain to run FROM 80 TO 8080
what I've done so far is trying different combinations with apache, but all i got is having all the virtual domains pointing to port 80
this is my conf:
<VirtualHost domain1.com:80>
DocumentRoot /var/www/domain1
<Directory "/var/www/domain1">