Questions relating to virtual hosting; that is, serving content for multiple logically-separate entities from the same machine. Usually relates to name-based virtual hosting in the web server, but can also cover other protocols such as SMTP or IMAP.

learn more… | top users | synonyms (5)

0
votes
0answers
43 views

Ghost blog on subfolder under https in apache

I'm trying to serve ghost blog in a subfolder of my domain: mywebsite.com/blog (would be also good to serve it at blog.mywebiste.com) now, for the main website I've this configuration in apache ...
0
votes
3answers
216 views

Nginx disable .htaccess and hidden files but allow .well-known directory

I have a Nginx server, and disabled hidden files in the nginx_vhost.conf ## Disable .htaccess and other hidden files location ~ /\. { deny all; access_log off; ...
3
votes
2answers
50 views

Apache Virtual Hosts (Ubuntu) ponting to wrong document root

I'm trying to setup an Apache server with several virtual hosts (www.domain.com & store.domain.com), but for some reason, when I just have one of them enabled (store.domain.com) Apache redirects ...
0
votes
1answer
11 views

How to map a single subdomain to a certain user's public_html directory with Apache2?

I'm trying to map daniel.mydomain.tld to /home/daniel/public_html instead of /var/www, while mydomain.tld should still point to /var/www. So far I have enabled mod vhost_alias using a2enmod ...
0
votes
1answer
19 views

Configure Apache2 sites path

I don't understand Directory and VirtualHost directives very well as I see it. I want to configure the apache server for the following behavior : Site content is at : /var/www/mywebsite I want the ...
2
votes
1answer
52 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
0answers
19 views

Unknown activity in /var/log/apache2/other_vhosts_access.log

I have OSSEC installed on my server and am constantly getting reports for activity in my other_vhosts_access log. They have nothing to do with my websites and I cant seem to track down whats causing ...
0
votes
1answer
41 views

Add Apache_Run_User to VirtualHost

Right now on an Ubuntu 14.04 server, WordPress (and Apache2) creates folders with www-data:www-data owner:group. The goal is to have Apache create files with different owners depending on which site ...
0
votes
0answers
24 views

Multiple VirtualHost definitions with multiple ServerAlias wildcards in apache

I posted this on SO but I thought here would be a better place to get an answer. I'm trying to add multiple VirtualHost definitions to automatically point a site at the correct folder, depending on ...
0
votes
2answers
59 views

How to route requests between Nginx servers on the same IP address based on domain name?

I'm running a Debian server with Nginx installed, as well as OpenResty. I have a domain, a subdomain of that domain, and in the future will have multiple domains pointed at its IP address with A ...
0
votes
1answer
5k views

nginx proxy_set_header x-forwarded-proto seemingly not working

Since i am a beginner in nginx proxying i have a question. The gist of it: Where does an nginx proxy set defaults for php's $_SERVER["HTTP_X_FORWARDED_HOST"], $_SERVER["HTTP_X_FORWARDED_SERVER"] and ...
1
vote
1answer
186 views

Nginx response trouble when aliasing to a specific file with regex

Basically, I'm trying to handle nice URLs mapped to actual HTML files on the server. I have URLs like so: /posts/nice-blog-post/ That need to return an HTML file on the filesystem like: ...
1
vote
3answers
5k views

How to create an alias from directory to VirtualHost directory in Apache?

I have a domain: example.com. There’s also a subdomain, admin.example.com: <VirtualHost *:80> ServerName admin.example.com ServerAlias admin </VirtualHost> Now I want to make ...
9
votes
4answers
19k views

Why might Apache ignore a virtual host with a ServerName matching the requested URL?

I'm trying to add a second virtual host to my apache configuration, but cannot seem to get the new virtual host to be used. My httpd.conf just contains the following line: ServerName ...
1
vote
3answers
3k views

Symfony2 Vhost Configuration

I'm new to Symfony2 and following the EnsJobeet tutorial. My VirtualHost config is as follows: <VirtualHost *:80> ServerName jobeet.local DocumentRoot /var/www/ensjobeet/web/ ...
0
votes
1answer
33 views

Virtual Host showing error 11001 even after chown and chmod

I am trying to create a virtual host to just test a basic html website. Guest OS - Ubuntu 14.04 Host OS - Ubuntu 14.10 In the Host OS, I connect through a proxy server which requires me to enter a ...
0
votes
0answers
29 views

nginx server block with fastcgi_param

i have: fast cgi on tcp defined 2 vhost A, B in nginx the second B vhost has in php location block fastcgi_param PHP_ADMIN_VALUE open_basedir= for example when i browse first A site and then ...
44
votes
4answers
146k views

Redirect URL within Apache VirtualHost?

I have a dedicated server with Apache, on which I've set up some VirtualHosts. I've set up one to handle the www domain as well as the non-www domain. My VH .conf file for the www: <VirtualHost ...
0
votes
3answers
166 views

What is the Apache equivalent of cPanel “Addon Domains”?

I've previously used cPanel, which has a feature called Add on Domains, that allows a web domain to point to a subfolder on the public_html. I have switched to a Linux server that does not have ...
1
vote
1answer
33 views

How to exclude Apache VirtualHost from global rewriting?

I have setup Let's Encrypt SSL certificate on my VPS, which works fine, but now all VirtualHost are trying to load over https://. I have found RewriteRule directive in le-redirect.conf: ...
0
votes
0answers
43 views

Libvirt & USB Hub Passthrough

I have a virtual machine which I wish to have a USB Hub and all of its devices allocated to a virtual machine. The Hub in question is a USB hub which itself is plugged into one of the ports on the ...
0
votes
1answer
33 views

Restrict access to apache document root but not for subdomains

I'm running Apache on CentOS 7. I have configured multiple virtual hosts. Their root directories are in /var/www/html/{example.com, sub1.example.com, etc.}. I have also configured a 000-default.conf ...
1
vote
1answer
34 views

I can't have my virtualhosts working properly in Apache

Although I know that this topic has been already discussed in some other threads where it is explained how to configure Virtualhosts in Apache. The thing is after looking for possible answers to my ...
0
votes
3answers
101 views

Nginx: proxy_pass dynamic from location

I hope you can help me with a little but tricky nginx problem: I want to configure a dynamic location-block like this: location /test1/* { proxy_pass destination.com/api/*; ...
-2
votes
1answer
27 views

Dokku different apps but same Vhost

I am just get a dedicated server and i would like to setup a dokku configuration. I bought a domain name and i would like my different application in different dokku: apps but with the same domain ...
6
votes
6answers
17k views

Why am I getting this error in the logs?

Ok so I just started a new ubuntu server 11.10 and i added the vhost and all seems ok ...I also restarted apache but when i visit the browser i get a blank page the server ip is http://23.21.197.126/ ...
0
votes
0answers
38 views

http/https in one VHOST apache. It works, but should it?

A lot of my hosts run http and https (apache 2.4), and it would be more manageable if I could combine both configurations in one vhost directive. When searching online, I get conflicting responses ...
-4
votes
2answers
88 views

setup multiple https on same server using different ports

I am trying to setup multiple https websites via apache or nginx virtualhost but i noticed i have to append the port to the end of the IP address to view the https of websites that uses non default ...
1
vote
0answers
46 views

nodejs app with apache2 server always shows 503

I have an apache2 server which runs all my php web application and I am trying to run a nodejs application. I have enabled proxy and proxy_http but it always shows 503 service unavailable page ...
2
votes
1answer
2k views

Problem with virtual host on zend server (CE)

I am trying to install a virtual host on zend server ce but get the following error: Forbidden You don't have permission to access / on this server. This is how my virtual host configuration looks ...
0
votes
1answer
42 views

VirtualHost DocumentRoot cgi goes to `/var/www`

I have an apache based web server I am called to do some maintenance on a few times a year. For this purpose I keep a local mirror so I can do what's required then upload the changes. I haven't used ...
0
votes
0answers
35 views

Apache name-based TLS/SSL virtual hosts don't work properly when using wildcard for IP

I have two VPSs running Apache 2.4 on CentOS 7 each hosting several virtual hosts, listening on port 80 for HTTP connections and port 443 for HTTPS connections: VPS1 (Xen): domain.tld ...
0
votes
2answers
1k views

Trouble installing new SSL certificate (Apache2 Virtual Host)

I'm having trouble trying to install a new SSL certificate for Apache2. We have regular traffic running on port 80, SSL running on 443. I modified httpd.conf, only renaming ...
0
votes
1answer
57 views

Subdomain With Custom URL/Domain

I have a subdomain called 'mysite' at this.example.org/mysite which needs to resolve to mysite.org in the address bar. Can this be accomplished with .htaccess in the mysite public_html folder, or ...
1
vote
0answers
116 views

Enable XSendFile on Apache on Mac OS X 10.10 - “Invalid command 'XSendFile'”

I have compiled and installed sendfile 0.12 on our mac web server. The module is enabled in the httpd.conf file, as below: LoadModule xsendfile_module libexec/apache2/mod_xsendfile.so I've ...
1
vote
2answers
24 views

In an apache ServerAlias directive, what does a question mark mean?

Apache's documentation says: The ServerAlias may include wildcards, if appropriate. and The wildcard characters * and ? can be used to match names My colleague claims that the question ...
5
votes
5answers
324 views

Virtualhost not working on different port

I'm trying to host my website on single server running centos7.1. I'm able to virtualhost on port 80 but when I change port of second-site to 8080 it points to first-site. However, for URL ...
2
votes
1answer
3k views

How to configure ProFTPD to provide a different anonymous FTP for each domain?

I'm trying to configure ProFTPD to match the following situation: Multiple domains on a single IP address. Each domain should have it's own anonymous FTP directory. Everything runs on Ubuntu ...
1
vote
1answer
15 views

Is it possible to send the same domain to a different vhost on Apache?

I need to send my local users on my LAN who visit mydomain.com to virtual host A. Then external visitors from the web who visit mydomain.com are redirected to virtual host B. The reason being; I would ...
0
votes
0answers
8 views

Is it possible to send the same domain on an Apache server to a different vhost?

I am wondering if it is possible to send a domain to a different virtual host on running Apache based on the users location. For example users on my LAN who visit my domain.com get directed to ...
1
vote
0answers
91 views

Java application is slow in virtual server (KVM)

I have a Java web application, which runs from JAR, starts embedded Tomcat and is using Spring Boot. Problem is that it runs very slow when running in KVM virtual guest. The same application in the ...
1
vote
0answers
24 views

HTTP to HTTPS redirect not working!? - Tried multiple methods

I purchased a Standard UCC SSL Up to 100 pack from Godaddy. I have installed all the required files on my server, and going to https://www.example.com works fine, but http://www.example.com is NOT ...
0
votes
2answers
87 views

How do I make a Windows sub-subdomain?

I have 2 domains: ex1.com ex2.com DNS records: MYIP @ my.ex2.com httpd-vhosts.conf <VirtualHost *:1337> DocumentRoot "D:/Webserver/domains/ex1.com/www" ServerName "ex1.com" ServerAlias ...
-1
votes
1answer
50 views

Enable an external website to resolve to a page on my parent website, keeping URL the same

I have a domain, www.example.COM. I have a page on that domain, www.example.com/page. I have another domain, www.example.NET and I want that domain to resolve to the page first mentioned, ...
0
votes
0answers
58 views

Second subdomain redirects to the main domain, but URL remains the same as second domain

It's quite strange to see this issue as title describes. Here are the details: 1) Created a A-record with "a1". Means subdomain is: a1.example.com, 2) created directory by "sudo nano ...
-1
votes
1answer
31 views

Make Apache work on a custom port using iptables only

My Apache/2.2.14 (Ubuntu) is running on port 80. I'm trying to make it listen on port 999 as well, but without making any changes to the apache config, only using iptables. I've added this to the ...
0
votes
2answers
20 views

single apache with many virtualhosts but only some of them have https

I have apache listening on 80 and runs 4 sites: aaa.com:80 bbb.com:80 ccc.com:80 ddd.com:80 I enable port 443 and add SSL cert only for the first 2 sites ("aaa" and "bbb") and it works well, so ...
93
votes
5answers
57k views

Multiple SSL domains on the same IP address and same port?

This is a Canonical Question about Hosting multiple SSL websites on the same IP. I was under the impression that each SSL Certificate required it's own unique IP Address/Port combination. But the ...
-2
votes
2answers
37 views

apache https applies to other http vhosts [duplicate]

I've searched a lot, i also tried lots of thing but still cannot find the problem. I have an apache 2.2.22 server installed on an ubuntu server 12.04 lts. I have a number of http virtual hosts and 2 ...
1
vote
1answer
28 views

How to resolve hostnames from a intranet interface? [duplicate]

I have a public IP and some hostnames pointing to it, on this public IP server I have others intranet interfaces running apache virtual hosts servers, my question is how can I forward external ...