Questions tagged [serveralias]
44 questions
0
votes
1 answer
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 (site 2)
--- ---
site 1 pages …

armadadrive
- 127
- 1
- 9
0
votes
1 answer
MAMP setting up a host
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.
DocumentRoot /Applications/MAMP/htdocs/myproject
ServerName…

alex
- 3
- 2
0
votes
1 answer
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 www.example.org/something I get redirected to…

John Crawford
- 2,005
- 3
- 15
- 9
0
votes
2 answers
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 obviously be modified manually by the client. Is there…

ChaimKut
- 191
- 4
- 9
0
votes
1 answer
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.

kgthegreat
- 103
- 1
0
votes
1 answer
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 this: www.domain.tld
I have read all…

TheLugal
- 3
- 2
0
votes
1 answer
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 domain, for users. We want to implement custom…

Warren Haskins
- 5
- 4
0
votes
3 answers
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 called mysite.com. This has the following…

Steven
- 275
- 2
- 9
- 21
0
votes
1 answer
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:
ServerAlias *.dertermin.com
Basically catching…

clops
- 213
- 1
- 9
0
votes
1 answer
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 be handled with wildcards, keeping the apache…

Martin
- 326
- 2
- 14
0
votes
1 answer
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. Can this be done some other way, using .htaccess…

davidhyland
- 335
- 1
- 2
- 4
0
votes
0 answers
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 the static IP of my server "172.16.0.6" in order to access the site.…
0
votes
1 answer
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;
# Remove trailing slash to please Laravel…

Lavesh Bhandari
- 1
- 1
- 2
-3
votes
1 answer
How to configure multiple domain on single hosting
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:
/var/www/virtual/myproject.com/htdocs
and…

maverabilisim
- 1
- 1