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
15 views

.htaccess losing to apache virtual host

I have a Drupal app at the default virtual host example.org running on Debian 8. I also have a separate application with a virtual host set to send requests for jones-store.example.org to another ...
0
votes
2answers
92 views

Showing my domain instead of my ip with apache

What I have I have a domain configured to point to my server. When I go to my domain, let's say: example.com it redirects me to: http://104.286.131.72/mysitefolder/index.php? And of course, ...
0
votes
0answers
15 views

Apache wildcard serveralias

Is it possible to have something like: <VirtualHost *:80> UseCanonicalName Off ServerAlias *.project1.host.dev </VirtualHost> <VirtualHost *:80> ...
0
votes
0answers
10 views

Apache2 Vhost port based not work properly

this is the apache config <VirtualHost site.com:8080> DocumentRoot /var/www/site </VirtualHost> <VirtualHost site.com:80> DocumentRoot /var/www/site2 ...
0
votes
1answer
30 views

How to use multiple wildscards apache vhosts configuration

i know its possible to use wildcard on apache ServerAlias. I'm trying to configure 3 sets but the configuration is falling back on one vhosts instead of each separate. dev environment ServerName dev....
0
votes
1answer
72 views

SOGo as a virtualhost

I am currently busy setting up a mail/web/caldav/carddav server for personal use (apache, postfix, dovecot, SOGo) and at the moment I am getting stuck at the point where I want to specify a subdomain ...
0
votes
1answer
21 views

Move website to a new domain

At the moment, the client website (an ASP.NET app) is accessible via, let's say, www.domain1.com. The client has then purchased a new domain himself, e.g. www.domain2.com, and is wanting to switch to ...
-1
votes
1answer
50 views

Apache httpd won't start

I'm unable to start apache on El Capitan. Output of apachectl restart is: [Mon Apr 18 19:47:32 2016] [warn] NameVirtualHost *:8443 has no VirtualHosts [Mon Apr 18 19:47:32 2016] [warn] ...
0
votes
0answers
26 views

Apache vhosts redirect to www.domain.com:PortNumber/

I'm having the following problem with Apache 2.4. I have set httpd.conf file to listen to 2 more ports (8081 and 8082) like this: Listen 80 Listen 8081 Listen 8082 DocumentRoot "C:/xampp/htdocs1" &...
3
votes
2answers
353 views

Apache redirect to index.php

I've got the below virtual host configuration on Centos 6.5 running apache 2.4. <VirtualHost *:4323> ServerName www.first.com ServerAlias first.com DocumentRoot /var/...
1
vote
0answers
24 views

Set Apache's vhosts with a sub-domain automatically

I'm posting here, because I want to configure apache vhosts automatically, like a.mydomain.com , b.mydomain.com ,etc ... but It doesn't work. I've already setting up a DNS Wilcard record like ( * ...
0
votes
0answers
14 views

Running Session Virtualization in Server 2012 off a single server box

My technical level is below average here. I have an HP (Proliant DL380 Gen9 Xeon e5-2620) machine running Server 2012 and Wyze thin clients off which I want to run 10 full Windows 8 Remote Desktop ...
0
votes
0answers
7 views

URL Redirection to application server based on prefix URL [duplicate]

I am new to apache . We have a platform where many URL requests come to apache and currently all the requests are being forwarded to single application server . Now , we want to have more than one ...
1
vote
0answers
29 views

apache php-fpm: How to run scripts on same domain w/ different users

I have a number of directories containing php scripts that need to be run as separate users. Example directory structure is as follows: /var/www ├── project │ ├── item1 │ │   └── script1.php │ ...
0
votes
1answer
41 views

Redirect one vhost to another vhost with SSL in Apache

Here is my situation: I have two CNAME domains (domain.one.com and domain.two.com) that point to the same IP/machine and I want to redirect one of the two to the other one, like domain.one.com/...
0
votes
0answers
29 views

How can I configure a Django website to work with Apache 2.4 VirtualHosts?

I recently started developing Django websites and I want to deploy them on a CentOS VPS with mod_wsgi and Apache. I followed this guide and it works perfectly, but I would like to have more than one ...
0
votes
0answers
14 views

apache virtual host times out when others succeed

Running Apache 2.4 on windows 2008 r2 using a single public IP with multiple virtual hosts. The issue here is that I have had no problems with other virtual hosts and there is one in particular that ...
0
votes
1answer
34 views

Apache <VirtualHost> tag, do NOT redirect if client's IP = x… how to do that?

so I couldn't find an answer to this question anywhere... I am redirecting my clients from http to https when they're using http by having this in my httpd.conf <VirtualHost *:80> ServerName ...
0
votes
1answer
42 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-...
0
votes
0answers
23 views

apache 2.4 ajp and virtual host not working

I have Centos 7 , Httpd Apache 2.4 and Tomcat 8 my goal is to connect to my site1.com which is on tomcat throw 80 port. Now if I go to site1.com I am redirected to site2.com which is on httpd apache ...
0
votes
1answer
18 views

Incorrect document root being set up

I have set up two virtual hosts. The configuration file is as follows: <IfModule mod_ssl.c> <VirtualHost _default_:443> ServerName a.b.com ...
0
votes
1answer
30 views

Apache Main Server does not serve as default as stated in httpd.conf when virtual hosts are created- Why?

When setting up an Apache server the Main Server section states the following: # 'Main' server configuration # # The directives in this section set up the values used by the 'main' # server, which ...
1
vote
0answers
30 views

NGNIX server blocks didn't work

I have 4 websites on VPS ip 104.207.148.242. I have been install NGNIX 1.8.1 successful. I do these steps: Make web directories: sudo mkdir -p /var/www/codingvn.com/html sudo mkdir -p /var/www/vyhn....
1
vote
0answers
29 views

After changing to SSL index.php post fix is expected before server requests

I installed Mautic in an AWS server and it was working fine on the port 80. But when change to the following site configuration in mautic.conf (placed in /etc/apache2/sites-enabled/mautic.conf) to use ...
-1
votes
1answer
35 views

Apache how to create default host for https

I have several sites on my server. For example: domain1.com and domain2.com. If user requests a not existing sub-domain (For example: a.domain2.com) he will be redirected to domain1.com. I want to ...
0
votes
0answers
12 views

ExecCGI is off in virtualhost subdirectory

I've created a new VirtualHost on my computer, like this: <VirtualHost *:80 *:8080> Options Indexes FollowSymLinks ExecCGI AddHandler cgi-script .cgi .pl ServerName mia....
0
votes
1answer
59 views

nginx mutiple domain with ssl and www redirection

nginx redirection is not working as expected with ssl and www redirection. I have two domains say, domain1.com and domain2.com. I need to have https with www redirection on both ie https:/www.domain1....
0
votes
1answer
2k views

Subdomain error: server DNS address could not be found

I'm trying to add subdomain to my domain. I just installed httpd on my clean centos 7. At first I created file /etc/httpd/conf.d/htmltest.mydomain.com.conf with the following contents: <...
0
votes
1answer
63 views

Create Sub Domain - Apache Virtual Host on LocalHost

My Question in the title may be wrong, but I have no other Idea how to word it. (Experts please help with this?). Basically sub domains works on my Development Machine when I got to URL http://...
0
votes
0answers
51 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
1answer
37 views

NameVirtualHost address is not supported, proceeding with undefined results

Apache Details Server version: Apache/2.2.15 (Unix) Server built: Aug 28 2015 22:18:57 Varnish varnishd (varnish-3.0.7 revision f544cd8) Copyright (c) 2006 Verdens Gang AS Copyright (c) 2006-2014 ...
0
votes
1answer
13 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 ...
3
votes
2answers
57 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
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
66 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
22 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
58 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
33 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
70 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
0answers
35 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 ...
1
vote
0answers
81 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
43 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
41 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 ...
1
vote
1answer
40 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: <...
-4
votes
2answers
106 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 ...
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 ...
1
vote
0answers
62 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
36 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 ...
0
votes
1answer
61 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
3answers
677 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; ...