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 ...
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 <...
-4
votes
1answer
40 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 ...
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....
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 ...
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
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 ...
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
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 ...
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
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 ...
-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 ...
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 ...
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 ...
-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 ...
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> # ... ...
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 ...
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
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....
1
vote
1answer
51 views

Two different SSL Sites with same name possible in Apache?

I just upgraded from debian 7 to debian 8 (apache 2.4) box called debian.domain.com I have Request Tracker, a helpdesk software, and i want to run it from https://helpdesk.domain.com (i have a valid ...
0
votes
0answers
71 views

Issues with SSL Certificate on CentOS 7 server running Apache 2

I seem to be having some problems configuring one of the Apache Vhosts with a newly generated SSL certificate. When I configure Apache and the vhost, and restart Apache, the service restarts just fine....
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(...
0
votes
1answer
47 views

Virtual hosts dymanic accept all incoming domain requests

I have the system with Apace. In httpd-vhosts.conf, I configured to accept subdomains, like below: <virtualhost *:80> ServerName www.mydomainname.com ServerAlias mydomainname.com *....
0
votes
1answer
21 views

3 virtual host serving same page when browsing to specific domain name

I have Webmin on Debian. I want to add 3 domain names to the virtualhost but for some reason all 3 domain names serve the same page when browsing to the domain names.The page that shows on all 3 ...
0
votes
1answer
36 views

Troubleshooting Apache virtualhost

Got some trouble using this configurations : <VirtualHost *:80> ServerAdmin ************** ServerName nagios.vdb.local ServerAlias nagios DocumentRoot /usr/local/nagios/share ...
0
votes
1answer
23 views

virsh command that displays the cpu and memory consumption?

I want to know if there is a command virsh to display the cpu and memory consumption of each machine virtual. I created the virtual machine using KVM in ubuntu system.
4
votes
0answers
109 views

VirtualHost Defaulting to Wrong Deployment on Restart

We have a server running seven domains/subdomains. To try to go as minimal as possible here I'll include four of them. example.com www.example.com dwf.example.com chris.example.com The server ...
-1
votes
1answer
41 views

How to re-write non-WWW to WWW whilst also enforcing HTTPS in Nginx

I have a client who I am tidying things up for after a migration to a newer/faster server. One of the inclusions is to bring in SSL support, and also standardize links/URLs. The goal is to force ...
0
votes
1answer
27 views

Apache Aliased Directory doesn't work for child directories of alias

I'm trying to run two different applications under user. Application 1: /home/user/public_html/app/public/ Application 2: /home/user/public_html/forum/ VirtualHost has the Server set to ...
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
17 views

Apache2.4 - make subdomain point to the same directory as domain

I have a problem configuring access permissions. I need to setup a WordPress subdomain multisite network for testing on my local machine. I'm on Linux, running Apache 2.4.10 in chroot (if this matters)...
1
vote
2answers
95 views

How have phpMyAdmin (with a Alias) with a virtual host subdomain of a different documentRoot

To increase security in my server I created an subdomain only for admin, like admin.domain.tld and usually i access phpmyadmin by going only at admin.domain.tld/mysqladmin as in config file: <...
0
votes
0answers
57 views

Tomcat/apache2 application - virtual host issue. Welcome.action URL not found. Possible mod_rewrite issue

Im having some issues setting up a tomcat application to work with apache2. My KonaKart tomcat application is running on port 8783. And I'm trying to access it publicly on port 443. I created the ...
1
vote
1answer
104 views

Apache 2.4 require all not working

My virtual host configuation file contains the following (Apache version is 2.4.7): <VirtualHost _default_:443> [...] <Directory [...]> Require all granted </...
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 ...
1
vote
0answers
25 views

environment host urls convention and using wildcard DNS

we're setting up new hosts and environment servers on our company... creating 3 server instances... dev, stage, production we've multiple clients and multiple projects per client so this is our idea: ...
0
votes
0answers
75 views

Certbot - SSL: unknown protocol error

We are trying to install and use Certbot. We have installed it and we tried to install one certificate (for https://www.tuxx.cn/), but this gives the following error when using Mozilla Firefox: ...
2
votes
0answers
26 views

Apache Virtual Host isn't redirecting to HTTPS

I have setup Gitlab on my server successfully and have configured it to run on Apache as that is what I use for hosting my current sites. I have used Let's Encrypt to add SSL encryption across my ...
2
votes
2answers
59 views

How to keep one page of a site secure using mod_rewrite

I'd like redirect access to a url from http to https for only a couple of pages on my website. I know how to do it for a whole site using the rewrite in apache virtual hosts: RewriteEngine On ...