Questions tagged [serveralias]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
44 views

How do you set up multiple virtualhosts on apache2 using only the server ip and server alias?

I'm trying to set up apache with multiple virtual hosts "filebrowser.com" and "videos.com" however, I'm only able to access filebrowser.com and not videos.com. I also have to enter ...
0 votes
1 answer
3k views

Nginx not able to redirect js , css, jpeg files

Please find by nginx.conf file as below : server { listen 81; server_name www.mysite.com; root /home/ubuntu/mysite/dist; index index.php index.html index.htm; charset utf-8; ...
1 vote
1 answer
2k views

Apache ignoring Server Alias and going to first virtual host

I'm having problems getting my ServerAlias domains to work correctly. apache2ctl -S gives: IP.ADDRESS:80 is a NameVirtualHost default server byteinsight.net (/etc/apache2/sites-enabled/000-...
5 votes
3 answers
4k views

Set Apache Alias for specific ServerAlias

Currently, I have a VirtualHost defined like so: <VirtualHost *:80> ServerName mydomain.com ServerAlias otherdomain.com DocumentRoot /var/www/project/ </VirtualHost> How can ...
12 votes
1 answer
11k views

Exclude specific domains from Apache2 serverAlias while using a catch all *(wildcard) alias

I have a web application that needs to support custom domains, in that regard I have set-up the following name based virtual server: <VirtualHost *:80> ServerName example.com ...
2 votes
3 answers
29k views

ServerAlias not working

I have a VPS, that I have configured to host multiple websites with name based hosting. It is all good while only using example.com, and www.example.com. It also works with example.net, but when I try ...
1 vote
0 answers
23 views

Apache2.4 strange ServerAlias wildcard behavior

I'm trying to create wildcard virtualhosts with ServerAliases sub.*.tld sub.*.tld2 *.tld *.tld2 (loaded in that order), the ones without the subdomain obviously work, but the first two do not, ...
0 votes
1 answer
2k views

multiple include files in apache virtualhost

I have a pile of domains and my customer wants www also available. I made two text files. One that starts with ServerAlias and the domain names and another text file that starts with ServerAlias ...
1 vote
1 answer
40 views

Anyway to avoid putting in seperate www for ServerAlias in Apache

I have a server with about 2000 domains on it pointing to same folder. I put an include file with the domain list into a virtual host entry. Do I need to make a second include file for www.sales....
3 votes
1 answer
2k views

How to make computer alias discoverable?

I am replacing an old server 2008r2 system with a new windows 2016 server but am having problems with computer visibility on the local network. My file server has a DNS alias which doesn't appear as ...
0 votes
1 answer
270 views

SaaS Domain Mapping: Cname to subdomain

I read a lot of threads here and I think I'm doing everything perfectly. I setup a cname record on domain.com with the name www and the answer the.subdomain.com However when I go to www.domain.com ...
0 votes
1 answer
267 views

Apache Virtual Hosts points to wrong DocumentRoot

I’m running a VPS (Debian 9) with Apache2 service running on it. I want to have a mail.example.com direct traffic to /var/www/mail and example.com to direct traffic to /var/www/example. I have written ...
0 votes
1 answer
2k views

Combining Apache ServerAlias and 301 Redirects

I've referenced this question but I'm not sure if I'm clear on how this works given this situation: I have a client with two brands that are currently online like this: Brand A (site 1) Brand B (...
0 votes
2 answers
3k views

Apache URL rewriting with ServerAlias

I have a vhost running on a CentOS 7 Server, which is serving 2 Prestashop stores. In this vhost conf file, I have a ServerName and a ServerAlias, each directing to a dedicated store. Recently I ...
0 votes
1 answer
173 views

How to know if connection is made to a server using alias or not? [duplicate]

Is there a way to know if the connection to a host is made via an alias or using the direct host name itself? This is in Linux. Basically I want to find out what are the connections made to my DB ...
0 votes
0 answers
114 views

CentOS 7 / Apache 2.4 ServerAlias strange behavior

I am facing a strange problem. I recently set up a fresh CentOS7 minimal install with an apache 2.4 server to replace an older server (CentOS5 / Apache 2.2) in production. However, when I copied the ...
1 vote
1 answer
4k views

Redirect root & all subdomains to another domain equivalent (DNS only)

First, yeah, I know, this question is probably a duplicate, but I've searched for some hours now and I can't find any relevant answer.... So I try asking. I got, let's say, domain-a.com & domain-...
7 votes
1 answer
22k views

Server Alias With wildcard subdomain

I am using WordPress network subdomain setup. I had to put *.mydomain.com as a server alias but now I also have a site subdomain.mydomain.com that leads to another directory. Is there a way of doing ...
0 votes
1 answer
34 views

MAMP setting up a host [closed]

I've a website which use a google api by a specific domain. Then my google App work on domain like dev.mydomain.com So i need to create a VH but it doesn't works. <VirtualHost *:80> ...
6 votes
1 answer
2k views

apache2 and VirtualHost with foreign characters and more than one Alias

I have a simple apache2 setup with two VirtualHosts. One is a domain name with "normal" characters, and one has foreign characters (with punycode). The problem is that I don't know how to add "www" ...
0 votes
2 answers
619 views

Plain Wildcard for Apache's ServerAlias

Are there any possible problems with using ServerAlias * in an Apache configuration? One thing I considered: ServerAlias is based on HTTP_HOST in HTTP headers delivered by the client, which can ...
64 votes
1 answer
105k views

Server Aliases on NGINX

I'm moving a site to a new server running on NGINX. The old site's Apache2 VirtualHost has ServerAlias configured that I want to replicate in the NGINX configuration. From what I've read on the ...
6 votes
3 answers
21k views

Apache Virtual Host Config www vs non-www, Rewrite or sServerAlias?

We have a central httpd.conf and we include confs for various virtual hosts. Until today, we didn't really have a need for "www.subdomain.site.com" domains, only "subdomain.site.com." Now we do, so I ...
0 votes
1 answer
944 views

ServerAlias - Force Apache to use 301 by default instead of 302

I currently have the following in my config file: ServerName example.com ServerAlias www.example.com ServerAlias www.example.org ServerAlias www.example.co.uk This all works great because if I go to ...
1 vote
0 answers
173 views

Can not access www with puppetlabs apache module

The vhosts are managed with the puppetlabs-apache module and I can not access the website with www but I can without it. When i use www I get a blank page and there are no errors an any logs and non ...
-3 votes
1 answer
94 views

How to configure multiple domain on single hosting [duplicate]

I would multiple domain on single hosting. My project files inside this hosting plan. I run same server. How to multiple hosting (vhost) acccess to my project files? For example: my project files in:...
1 vote
1 answer
4k views

ServerAlias with SSL

I would like to know if the SSL certification would still be valid in the scenario. By valid I mean it will display both sites with SSL certificate without any issues or errors etc. I have two ...
1 vote
2 answers
170 views

Apache vhost configuration for ServerAlias getting default

Given this configuration: NameVirtualHost *:80 Listen 80 <VirtualHost *:80> ServerName default.example.com </VirtualHost> <VirtualHost *:80> ServerName www.example....
0 votes
1 answer
61 views

Does ServerAlias config under apache accepts something like "www.example.com/somthing/more"?

I want to add a ServerAlias pointing to a url say "www.example.com/somthing/more". I know this is perfectly possible in case of "www.example.com" or "*.example.com" for eg.
1 vote
2 answers
219 views

Aliasing a domain on Apache

I am developing a website on my own development servers. The client is loading some fonts that are white-listed on just their domain, the problem is that during development I cannot see them on my dev ...
0 votes
1 answer
421 views

How can I get ServerAlias to work?

I have an Ubuntu server with apache2, where I host a small community. The domain for this is (as an example) domain.tld. I Try to add a simple ServerAlias that allow users to append a www-prefix, like ...
6 votes
1 answer
3k views

Apache ServerAlias wildcard for domains (e.g. subdomain.*.com)

I know it's possible to use wildcards for subdomain aliases like: ServerAlias *.domain.com But is it possible to use that for domains having a the same subdomain? # like this ServerAlias subdomain.*...
1 vote
2 answers
659 views

Is it possible to add wildcard serveralias to virtualhost without modifying httpd.conf manually? [closed]

Is it possible to add wildcard serveralias (example: *.somesite.com) in an apache server without modifying httpd.conf manually? I use a DNS different from my hosting server and i have added asterisk A ...
0 votes
1 answer
1k views

CNAME to wildcard subdomain only getting default server page

We're having problem with a server config, and I hope I can get some help with this as its driving us mad! Basically, we have an app set up at domain.com, and wildcard subdomains set up on the same ...
2 votes
4 answers
5k views

Managing lots of Apache vhost ServerAliases

So I've got this site that's being served as a virtual host by Apache 2. And it has a metric ton of alternative domain names that are all supposed to resolve to it. Up to now I've handled things like ...
2 votes
1 answer
292 views

Passenger and ServerAlias not cooperating

I have a ruby application that runs on a server with multiple IP addresses and mutliple vhosts. Here is the configuration of the problematic virtual host: <VirtualHost 10.0.0.10:80> ...
0 votes
3 answers
217 views

ServerAlias stopped working

I had this working, then my VM server crashed. I'm running Ubuntu on Oracle VirtualBox. Now I'm trying to add some server aliases, but it's not working. In my 'sites-enabled' folder I have a file ...
0 votes
1 answer
294 views

ServerAlias Exceptions

I am looking for a special configuration for Apache (and eventually NGinx) to allow to map all but one host as a ServerAlias to a specific VHost configuration. For example, my current setting is: ...
0 votes
1 answer
273 views

Alternative to editing httpd-vhosts.conf for ServerAliases on shared hosting?

greetings. i need to set up some ServerAlias records so multiple domains can be mapped to the same application folder however with this shared server i don't have access to the httpd-vhosts.conf file. ...
0 votes
1 answer
788 views

Performance of multiple VirtualHosts vs. ServerAlias in Apache2?

until now, we had multiple web servers with multiple IPs and a lot of domains pointing to them (most of the domain logic was inside our CMS). I liked this aproach because a lot of configuration could ...
1 vote
0 answers
1k views

Kerberos Issue on Aliased SharePoint Web Front Ends

I am having a problem with Kerberos working on SharePoint. Also note that I am a developer not a network guy so if I use the wrong terms I apologize but I hope my intent is clear. We have two web ...
13 votes
2 answers
60k views

Apache2 multiple hostnames redirected to one

I'm trying to redirect multiple hostnames to only one, for example, if you enter any of: foo.example.com www.example.com bar.example.com eample.com you must be redirected to www.example.com I have ...
1 vote
1 answer
616 views

Apache 2: I have multiple domain names I want to point to one Virtual Host. Do I use ServerAlias?

I have multiple domain names, for example: www.foo.com www.goo.com www.moo.com www.coo.com I want all of these domain names to resolve to one website AND to redirect to www.foo.com What is the best ...
1 vote
2 answers
1k views

Apache2 ignores ServerAlias

the www versions of all my sites work. the non-www version don't work. All non-www versions go to my default vhost (galengrover.com) Here are the first 2 virtual hosts in httpd.conf. ServerName ...