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
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 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..
How I can redirect sitemap.xml file access to different subfolders, if it can be reached from three different domains?
domain1/sitemap.xml -> domain1/es/sitemap.xml
domain2/sitemap.xml -> domain1/de/sitemap.xml
domain3/sitemap.xml -> domain1/uk/sitemap.xml
domain1, domain2, and domain3 target to the same folder.
Is it possible? How can I do this?
My question is very similar to this one: IIS 7.0 install two SSL certificates with two different host headers except that my domains are totally different:
1 SSL for http://domain1.com
1 SSL for http://domain2.com
I installed my certificates as described in that question/answer but if I navigate do domain2.com (which I binded via appcmd ...) I get the certificate for domain1.com.
I have the following scenario:
domain1.com
domain2.com
domain3.com
domain4.com
Whenever someone types www.domain1.com or www.domain2.com or www.domain3.com she should be redirected to www.domain4.com.
How can i achieve this using CNAME records?
Hosting environment: Shared hoster, IIS7, Websitepanel
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.
We have a multi-tenant email relay set up that has a transport map file that looks like this:
domain1.com smtp:mail.domain1.com
domain2.com smtp:mail.domain2.com
domain3.com smtp:mail.domain3.com
[etc]
In the event mail.domain1.com is down, email for domain1.com will be held by the postfix server until mail.domain1.com starts responding again.