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've had no problem with vhosts before, but for some reason this one isn't pointing to the right document root.
How to use custom virtual host in apache like nginx? Nginx example:
server {
listen 80;
server_name ~^(.*).dev.domain$;
location / {
proxy_pass http://$1.domain:8080;
proxy_set_header X-Real-IP $remote_addr;
}
}
In apache i planed like this:
<VirtualHost *:8080>
DocumentRoot /home/$1
ServerName (.*).mrtigra.info
</VirtualHost>
I have a domain (example.com) hosted at an external provider. I directed the subdomain sub.example.com to my ubuntu server (12.04 with apache2).
On my ubuntu server I have a vhost setup like this.
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
I have a domain name called dumbdom.com.
I have an elastic IP for my AWS EC2 instance called my.ela.stic.ip.
The htdocs root of my linux based EC2 instance is at /var/www/html/.
I have set up the /etc/httpd/conf.d/vhost.conf file to direct the domain dumbdom.com to /var/www/html/my_dumb_app/ and that's working Fine!
If I have multiple subdomains in an Apache vhost file, and they all have the same ServerAdmin, can I put the ServerAdmin directive once at the top outside of the VirtualHost tags?
i have a domain www.mydomain.com. it is hosted in apache.
when i hit this domain, it takes me to apache default page.
My currently working apache config has everything running on port 80 (the usual) but I'm adding a node proxy to the front-end and this will listen on 80 and forward to other web servers based on the host requested.
At this time my httpd.conf file is empty, the ports.conf file looks like the below
NameVirtualHost *.80
Listen 80
inside my sites-available I have config file named "blog" -that fil