0
votes
0answers
132 views

Multiple subdomains on a single domain with Nginx

I have the domain mydomain.com and I want it to be redirected to blog.mydomain.com. Inside the same server, I want to have subdomain.mydomain.com which points to another folder with another site. I ...
0
votes
0answers
154 views

Why all subdomains are directing to same service?

I have 3 subdomains: a.mydomain.com, b.mydomain.com, c.mydomain.com configured by domain provider as following: Name TTL Type Value a 1d CNAME @ b 1d CNAME @ c 1d CNAME @ And the nginx ...
0
votes
1answer
406 views

How to redirect to other server? (apache and nginx)

i have an Apache server running for two sites on port 80. Let's say the domain is example.com and I have an other domain example2.com. When a user visits example.com, I want it to serve those files ...
0
votes
1answer
150 views

cdn with nginx - redirect back if not found

I need to configure cdn with nginx for images. GeoIp is working fine, but i have a problem with images that are not found on cdn server. I configured nginx the following way: Client requests the ...
0
votes
2answers
610 views

Why does nginx redirect to a strange URL?

I had just set up nginx on my server. I have PHP and everything working okay. Except when I try the URL http://xxx.xxx.xxx.xxx/123 I get redirected to http://_/123 but when I try the url ...