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

Ansible clean up phpmyadmin login on 8080 broken?

typical stack, Nginx, varnish, php 7. If I set the vhost in nginx to 80 I can login without difficulty. If I move it to 8080 I cant (verified varnish/nginx listening on correct port when ...
1
vote
2answers
73 views

.htaccess file not loaded for PHP files

I am trying to work out why my .htaccess is not being considered when loading a .php file. Below files sit in the webroot of my localhost. .htaccess # Cause a HTTP 500 test file.html <html>&...
0
votes
1answer
1k views

Apache 2.4 Virtualhost Blank Screen

I've recently moved a PHP project I'm working on to a VM running Apache 2.4.9 from a physical box running Apache 2.2.11. I have setup a VirtualHost for the project similar to what I had on the 2.2 box....
0
votes
0answers
19 views

Apache virtualhost server only works intermittently [on hold]

I have an apache 2.2 instance serving two sites using virtualhost. apachectl -S returns syntax okay. Querying each ServerName with dig [ServerName] points to the correct ip address and hostname. ...
0
votes
1answer
12 views

NameVirtualHost does not work: only loads default host

I have configured Apache 2.2 so that I can have 2 hosts. The problem is when I connect using the second host, the default one is loaded. This is the vhosts.conf file: NameVirtualHost *:80 <...
0
votes
1answer
1k views

How to combine Lighttpd simple_vhost with www to non-www redirects?

I've set a simple virtual hosting using Lighttpd simple_vhost module and want to do a permanent 301 redirect from www to non-www. Here are most significant parts of my configuration file: server....
-4
votes
1answer
39 views

Apache package httpd on CentOS7 wont start or restart

After installing and uninstalling and restarting httpd on a lab server that I'm using, it still doesn't seem to work. I've thought that may be, according to the results I've seen from my search that ...
1
vote
2answers
1k views

ReverseProxy not working on OSX El Capitan

I am attempting to access my plex web ui through a cleaner url. Currently, you can access it at http://marvin.boldlygoingnowhere.org:32400/web/index.html. I want it to be at http://marvin....
0
votes
1answer
1k views

Moving Zend Framework 2 from apache to nginx

I would like to move site that uses Zend Framework 2 from Apache to Nginx. The problem is that site have 6 modules, and apache handles it by aliases defined in httpd-vhosts.conf, #httpd-vhosts.conf &...
0
votes
1answer
9 views

Varnishncsa for Varnish 4 split log by Vhost

In the varnish 3, varnishncsa can support -m option (-m tag:regex only list records where tag matches regex. Multiple -m options are AND-ed together. ). After upgraded to varnish 4, I cannot find the -...
0
votes
2answers
21 views

Apache vhost config

Hi i've tried to configure a vhost on my server but it's not working. when trying to access it goes default... this is my basic config. On my server: /var/www/html/blentico.com/public_html/index....
1
vote
3answers
6k 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 ...
0
votes
3answers
5k views

upgrading to Apache 2.4: VirtualHost Invalid command 'AssignUserID'

I have many Apache 2.2 Virtual Hosts with same configuration: <VirtualHost *:80> ServerAdmin webmaster@site.com ServerName site.com ServerAlias www.site.com DocumentRoot /home/...
0
votes
0answers
11 views

Virtual Host Proxy redirect error

I'm running Apache on a couple of servers. I'm trying to redirect 1 site from my main server onto another server on my internal network. On my main server I've setup a .conf file master.conf with ...
3
votes
1answer
2k views

Require ldap-group on apache 2 vhost fails when trying to log in

I have a vhost which I'm trying to get to work with LDAP-authentication. My configuration looks like this: <VirtualHost 0.0.0.0:80> DocumentRoot "/var/www/root/" ServerName ...
0
votes
2answers
41 views

Listen to multiple ports only apply to localhost but not external ip of the server

I am running apache on google compute engine and I follow the step here : http://www.groovypost.com/howto/apache/configure-apache-web-site-to-use-multiple-ports/ to enable my website to accept ...
0
votes
0answers
13 views

Apache rewrite_mod in <Directory> context to override .htaccess

So what I need is to throw 403 to specific paths on my webserver, I'm on Server version: Apache/2.4.20 (Ubuntu 14.04) The paths are localhost/folder/admin and localhost/folder/superadmin for example ...
0
votes
1answer
27 views

including files from /var/www in apache virtualhost subdomain

I've been having this problem for a while and still can't come up with a proper solution - I want to include files from directories within /var/www from my Apache server. This isn't a problem whenever ...
0
votes
1answer
17 views

varnish vhost specific config?

(varnish-4.1.1 revision 66bb824) Many relatedposts exist on this so my apologies. what is the best practice if you need to use varnish with two sites with different requirements? Ive seen ...
0
votes
1answer
36 views

Apache configuration - Why I get redirect loop?

I have Apache server and JBoos server with my application on my local computer. This is my Apache configuration: httpd.conf ServerRoot "C:/opt/Apache" Listen 80 LoadModule actions_module modules/...
0
votes
1answer
36 views

apache2 rewrite configuration not working

I have a file www.example.org.conf that I want to redirect http to https. The problem is the file doesn't exactly work right. <VirtualHost *:80> ServerName example.org ...
0
votes
1answer
22 views

Apache 2.4 SSL _default_ overriding virtualhost

I have an Apache 2.4 server that I have created a self-signed cert for testing https with a new client site. The problem I'm encountering is that the ssl.conf file's is always loading for my site ...
2
votes
2answers
6k views

Apache 2.4: First VirtualHost configuration loading for ServerNames of other vhosts

I have a problem with VirtualHosts which Apache 2.4. If I navigate to ty1.dev, I get the site for af2.dev instead If this was Apache 2.2, all I would need to add is NameVirtualHost *:80 but is ...
11
votes
5answers
21k 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
1answer
1k views

Munin - apache_watch_ plugin, does not show any data in the graphs that shows activity for per vhosts

I am using Munin for monitoring my server. I installed the apache_watch_ plugin so that i could see apache related activity. The graphs for apache_accesses, apache_processes and apache_volume work ...
0
votes
0answers
9 views

Is it possible to set up a local virtual host for certain URLs on a domain?

I want to do UX testing on a live website, but swap out specific live pages with new versions on my Mac. I'd like the participants to use the live search feature on the current website (including all ...
0
votes
4answers
111 views

web sites on different servers, but want all sites accessible over port 80 and 443

I have two web servers behind a router: 1 line of business web app/site (Windows) and 1 LAMP/web dev server with multiple sites/projects (apache with vhosts, own domains, etc.). So far to access web ...
-1
votes
3answers
49 views

Apache doesn't start after virtualhost setup (CentOS7)

I setup virtualhost file in /etc/httpd/conf.d/vhost.com.conf like the example and check my file and addresses many times <VirtualHost *:80> ServerName www.vhost.com ServerAlias vhost.com ...
5
votes
2answers
3k views

Nginx Multiple Domains

I am trying to add a second virtual host to nginx. When i go to the new domain it redirects to the old one. I have tried restarting Nginx, rebooting the server. Has anyone come across this before, ...
0
votes
0answers
14 views

Setting up a reverse proxy from Apache to Node.js

I am attempting to setup a reverse proxy from Apache to a Node.js/Express.js app listening on port 8000. This server has cpanel installed but I have ssh access and pretty much ignore cpanel. I added ...
1
vote
2answers
86 views

Block direct IP connections to Apache web server [duplicate]

I need to figure out how to block direct IP access to my website. Example: I want it so that when people type my IP address 1.2.3.4 into the browser it doesn't work, but when they type www.example....
0
votes
1answer
13 views

Configuring Jetty for FastCGI has worked, but how to add virtual hosts?

On CentOS 7 Linux I have successfully followed the guide Configuring Jetty for FastCGI. However the $JETTY_BASE/webapps/jetty-wordpress.xml file in the guide serves a single Wordpress installation ...
0
votes
0answers
20 views

How to add Virtual host on ec2 wiith Apache 2.4.18?

I'm trying to domain to point specific document root of EC2 instance. I've set Route 53 and and also set DNS to domain. Now domain points fine. I have also added host to host file of server. Now I ...
0
votes
0answers
20 views

how to undo 'Alias' in Virtualhost

I wanted www.domain1.tld/domain2 to point to /www/directory2 So I added an 'Alias line' to my Virtualhost config apache2/sites-available/domain1.conf like this: <VirtualHost *:80> ...
0
votes
0answers
9 views

Static file serving through apache2 [duplicate]

I want to enable static file serving using apache2 by accessing the files in files system. My application is running on Tomcat7, my virtualhost looks like: <VirtualHost *:80> #set server ...
2
votes
1answer
1k views

Multiple Domains Name on one server with Nginx

I'm struggling to configure two different domains name on my dedicated server... I've already one DN configured like this in the vhost DOMAIN_1.net.conf : server { listen 127.0.0.1:8080; ...
-1
votes
0answers
16 views

Single Servers or Virtual Servers for small business [duplicate]

I have a small Company of about 25 users. Today I have a main Server used for file sharing, SQL server, Active Directory. I have another server used for Hype-V. I find I cannot upgrade the main server ...
-8
votes
1answer
101 views

Is my virtual host configuration correct? [closed]

Is this virtual host configuration correct? DocumentRoot /sda1/htdocs <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /sda1/htdocs> ...
0
votes
0answers
19 views

Messy conflict between Wordpress .htaccess and HTTPS rewriting

I'm using Apache 2.4.6. I am trying to do HTTPS for a specific wordpress site through apache configuration. I have the following in my apache vhosts: <VirtualHost *:80> # ... ...
3
votes
2answers
3k views

Apache 2 UserDir for only one VirtualHost

Is it possible to enable the UserDir Directive for just one VirtualHost rather than have it on for all and then disable it (with "UserDir disable") for each VirtualHost you don't want it on? I have ...
0
votes
1answer
18 views

How to divert request from apache to multiple servers ports (Zope 8080, Tomcat 8081 etc.)?

Hi I am running multiple applications on the same machine like Plone which is using ZOPE application server that is running on port 8080 and Tomcat which is hosting multiple web applications and ...
0
votes
1answer
3k 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
31 views

www subdomain working, unkown reason

i have a vServer with a domain (from strato) running on Apache2. My only running site has the following vHost: <IfModule mod_ssl.c> <VirtualHost *:443> # The ServerName directive sets ...
2
votes
2answers
7k views

Forbidden (403), when accessing server-status on apache 2.2.22

I'm getting Forbidden error when trying to access www.website.com/server-status mod_status is enabled The VirtualHost: <VirtualHost *:8080> ServerName website.com ServerAlias www....
12
votes
2answers
42k views

what is .crt and .key and how can I generate them?

SSLEngine on SSLCertificateFile /etc/httpd/conf/login.domain.com.crt SSLCertificateKeyFile /etc/httpd/conf/login.domain.com.key SSLCipherSuite ALL:-ADH:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP
0
votes
0answers
9 views

VirtualHost subdomain from another server not working

I have several sites like this: server.com => 1.2.3.4 www.server.com => 1.2.3.4 xyz.server.com => 1.2.3.4 foobar.server.com => 1.2.3.4 And I would like to add this two new ones: admin.server.com ...
0
votes
1answer
58 views

Apache ignores any new .conf file

I have a Linode server that I run for more than 30 websites on it! Today I wanted to add another website and I created a new .conf file in sites-available folder in Apache2 folder. After enabling it ...
0
votes
0answers
27 views

Apache filter host headers for Django Application

I have an Apache Webserver for Django. It works fine generally, but I need to filter requests with invalid host headers. I tried: <Directory /> SetEnvIfNoCase Host 5.35.241.123 VALID_HOST ...
1
vote
1answer
47 views

Apache Virtualhost shows default page only

I've been struggling with Apache Virtualhost for a day now. I would like to run 2 sites with one ip. When I enter the address in the url bar(domain1 or domain2), it always shows the default page only(...
1
vote
1answer
24 views

HTTPS subdomains not redirecting for non-wildcard cert

How do I set it up such that https://anything.example.com redirects to https://example.com properly? My current setup goes like this: http://example.com --> https://example.com http://subdomain....