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
I have a server at home that I plan to use to host two websites using Apache, I bought two domains and made them go to my server IP, but the problem is that it only works for one of them, if I enter domain1.com it goes to /domain1, if I enter domain2.com it still goes to /domain1.
This is my configs for them, I did this by reading some tutorials and such..
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
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 am trying to setup SSL certificate for my two domains on one apache web server.
I configured Apache with a CacheRoot directory for each of my domains / virtual hosts:
<VirtualHost>
ServerName domain1.tld
...
CacheRoot /var/www/vhosts/domain1.tld/httpdocs/cache
...
</VirtualHost>
<VirtualHost>
ServerName domain2.tld
...
CacheRoot /var/www/vhosts/domain2.tld/httpdocs/cache
...
</VirtualHost>
I have this up and running for quite a while and so fare it
I created new virtual host, but when I try to request it, Apache redirects me to another virtual host.
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
Hello.
I have a problem related with DNS:
I have 2 dns zones in my WHM:
-domain1.com
-domain2.com
I want to do this redirection:
aaa.domain1.com → aaa.subdomain.domain2.com
My zones setup is this one:
In domain1 zone:
aaa CNAME aaa.subdomain.domain2.com
In domain2 zone:
aaa.subdomain A IP-of-domain2.com
The problem comes when I try to open aaa.domain1.com, i