What is wrong here?
NameVirtualHost *:80
<VirtualHost _default_:80>
ServerName domain1.com
DocumentRoot /var/www/html/domain1-com
</VirtualHost>
<VirtualHost *:80>
ServerName domain2.com
ServerAlias www.domain2.com
DocumentRoot /var/www/html/domain2-com
</VirtualHost>
Problem:
domain1.com correctly serves the content at /var/www/html/domain1-com, b
I am struggling with this all the day, no answer i found here as well.
Please advice how to setup proper a subdomain i need.
My Apache config has 2 domains configured (on same IP), for the domain2.com i need to setup a sub-domain.
Here is what i have so far, but the subdomain keeps redirecting me to domain2.com (main site).
<VirtualHost 11.11.11.11:80>
ServerName domain1.com
ServerAlias do
Hey Guys,
I'm having a little problem with the config of apache.
For a school project I need to host 2 websites with apache.
My DNS is ready to go, I tested it and it works perfectly.
Below are the settings in my httpd.conf wich is giving me some problems:
Code:
NameVirtualHost 10.1.11.20:80
#
#
I created new virtual host, but when I try to request it, Apache redirects me to another virtual host.
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">
How do you host two separate Django apps, each using a different domain, on the same Apache server using mod_wsgi?
The apps use the same codebase, but each has a different settings.py file (defined as settings_domain1.py and settings_domain2.py).
I've defined an Apache conf file for each site (domain1.com and domain2.com):
domain1.conf:
<VirtualHost *:80>
ServerName domain1
Serve
I am trying to setup SSL certificate for my two domains on one apache web server.
Hello everyone,
I'm not quite clear on the difference between ServerName and ServerAlias.