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 (3)

1
vote
1answer
192 views

403 Forbidden in root

I'm setting up a webserver with virtual hosts, and I'm having a hard time getting around this 403 Forbidden error. The error claims something is pointing to root /, but the directives are set for any ...
0
votes
1answer
355 views

VirtualHost Redirect should work with new RewriteBase

Inside the VirtualHost I got this redirect: RewriteBase / RewriteCond %{REQUEST_URI} wp-content/uploads/([^.]+\.(jpe?g|gif|bmp|png))$ RewriteRule (.*) http://example.org/$1 [R=301,L,NC] So the full ...
1
vote
1answer
1k views

Location directive not working

For my NGINX server I have a virtual server set up just to dish out static content. At the moment I'm trying to set it up so that images have an expiry date. However, when I create a location ...
1
vote
1answer
275 views

Creating multiple Virtual Hosts in Apache the right way (macosx)

I got a strange problem trying to define multiple virtual hosts in Apache. This is my code for httpd.conf file: <VirtualHost *:8888> ServerName site1.local DocumentRoot ...
0
votes
1answer
175 views

How can I persuade a wordpress bitnami module to operate on a subdomain?

So I have bitnami's LAMP stack running, and I have a wordpress module installed within it. I want my wordpress installation to live at blog.example.com, and any wordpress links to remain under ...
0
votes
1answer
34 views

Under what circumstances would two identical subdomains on the same server behave differently?

I have two subdomains in the same parent folder on the same disk on the same physical server, operating under the same instance of Apache2 and all its mods. How do I know the folders are identical? ...
0
votes
1answer
79 views

RewriteRule Not Rewriting URL properly [duplicate]

I have the following virtual host file: <IfModule !wsgi_module> LoadModule wsgi_module modules/mod_wsgi.so WSGISocketPrefix run/wsgi </IfModule> <VirtualHost *:80> ...
0
votes
0answers
236 views

CakePHP Rewrite Loop using Subdomain Wildcards

I am using CakePHP 2.4 and usually setup a single virtualhost file to point to dev.myapp.com and everything works fine. dev.myapp.com goes to the home page, and dev.myapp.com/users goes to the main ...
1
vote
0answers
79 views

Configure Bonjour for a custom vhost on Apache on OS X 10.9

How to broadcast all my vhost ? This has been answered for Snow Leopard, sadly the configurations files pointed in this thread are not there anymore in Maverick.
2
votes
1answer
211 views

Why this VirtualDocumentRoot setup returns 403 Access Forbidden?

I have the setup my httpd-vhosts.conf with the following derectives: UseCanonicalName Off LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon CustomLog logs/access_log vcommon <VirtualHost ...
0
votes
1answer
45 views

Is VirtualHost Entry Required for CNAME Pointing to Same DocumentRoot?

www.example.com. 1800 IN CNAME example.com. other.example.com. 1800 IN CNAME example.com. Which method is correct in Apache when all entries point to the exact same ...
0
votes
1answer
128 views

Chrome and IE Virtual hosts subdomains pointing to wrong directory

Firefox brings up the correct pages, but IE and Chrome both bring up the default page. I am running Apache/2.2.15 (Unix) on CentOS 6.5 I have a virtual.conf in the conf.d folder with the following: ...
0
votes
1answer
196 views

Apache ProxyPass in Dynamic Mass Virtual Hosting

In order to make my life easier with new vhosts popping up I set up my httpd.conf to use this: <IfModule mod_vhost_alias.c> <VirtualHost *:80> RewriteEngine On RewriteCond ...
4
votes
2answers
732 views

How do I give label to vSwitches on VMWare?

I've searched extensively trying to name the vSwitches that I create, but all I can name them are "vSwitchX" where x= some number. How do I give these switches names? I'm using the Web Client. ...
1
vote
2answers
111 views

Apache restrict /var/www subdirectories access

I got 2 virtualhosts that are looking at /var/www/site1 (ServerName site1) and /var/www/site2 (ServerName site2). I want to make my sites unavailable by http://1.2.3.4/site1 or http://1.2.3.4/site2 by ...
-2
votes
2answers
61 views

Virtualhosts - making available only certain websites without root folder [closed]

I have a DNS name as somename.dlinkddns.com Also I've LAMP installed on my development machine. I want to show my websites for client. It's possible to do it using virtual hosts. e.g. - ...
-5
votes
1answer
109 views

Host a website on your virtual pc and access it on the internet [closed]

My friend and I are talking about hosting a website that is in development, We have a single computer(windows7) and would like to host a website virtually on this computer. Scenario is: Main ...
-4
votes
2answers
115 views

how can i access a directory from network in apache using httpd.conf [closed]

I want apache to access a location which is in network that means instead of specifying a DocumentRoot from withing the server(mine is centos) i want the apache to access a directory which is on ...
0
votes
1answer
126 views

Two apps on Apache server with URI

I need to install a server with Apache 2.2 on Linux and I need to do two VirtualHosts differentiated by URI. But with only one domain name and one ip address. And I can't use Alias. I tried ...
0
votes
1answer
241 views

Configure Apache To Return Nothing For Default 443 VHost

I have several vhosts on port 443 and each of these vhosts have the ServerName config option set and also the correct SSLCertificateFile and SSLCertificateKeyFile values as well which vary depending ...
1
vote
1answer
252 views

Sub-domain setup doesn't work Apache 2.2.26 on Amazon EC2

I tried setting up a sub-domain for my site example.com. It doesn't seem to resolve to the proper directory. Below is my setup Main domain: example.com Subdomain: subdomain.example.com DNS records: ...
0
votes
3answers
1k views

Apache 2.4 - 403 HTTP status code

I'm getting a 403 error message with Apache, in Debian Testing. Apache version: # aptitude show apache2 | grep -i version Version: 2.4.9-1 # ls -la /home/ total 28 drwxr-xr-x 4 root root ...
4
votes
1answer
1k views

How to trace high CPU Apache process to particular virtualhost

Looking at the output of top I notice that intermittently there are one or two Apache processes consuming a high amount of CPU - anywhere between 50% - 90% The spikes in CPU usage come and go quite ...
0
votes
3answers
106 views

one IP: virtual machines for virtual hosts? [closed]

I currently have one hardware linux server with one IP address that is running three websites (virtualhosts via apache). I would like to push each website into its own virtual machine in order to ...
1
vote
1answer
44 views

Virtual server isn't working if I use www instead of just the domain

I have two domains. Domain1 uses IP1, and Domain2 uses IP2, however they both point at the same VPS. I got it working if I go to domain1.com, however going to www.domain1.com gets stuck on the ...
0
votes
1answer
35 views

Does apache have some sort of cache for virtual host configuration?

I am trying to simply change my ServerName and Server alias but it will not make the change effective even after restarting apache. Is there some sort of cache that I need to clear somewhere to get ...
0
votes
1answer
1k views

Setup an apache Virtual Hosts on Debian 7

I tried to setup an apache virtual host on a fresh debian 7 installation like following: applied steps 1.Install apache server: apt-get install apache2 2.create my new derictory: mkdir -p ...
0
votes
1answer
32 views

Postfix not mapping UNIX users with @ character

What I want to achieve: On my production server, I'm planning to have multiple users and multiple domains and my best option is to create full email-address-format unix user - when John Doe requests ...
1
vote
1answer
1k views

Which CPU model to set for guest KVM when processor is Ivy Bridge?

For a KVM host with an Ivy Bridge processor, which MODEL should use for CPU>CONFIGURATION in Virtual Machine Manager? Ivy Bridge is not available.
0
votes
1answer
160 views

Nginx multiple virtual host isn't working

I already have a Working nginx installation for my local development in my Computer. So i was thinking about adding another virtual host for a new project. Here is the Existing Virtual host file AKA ...
-1
votes
1answer
357 views

mod_rewrite: Redirect https://example.com to https://sub.example.com [duplicate]

I have an domain example.com running on an Apache Server and I want to redirect every call to https://example.com to https://sub.example.com. I have a Virtual Host configured like this: ...
1
vote
1answer
2k views

Apache - listen only on specific domain, not IP

How can I configure apache so that it refuses connections coming directly to the IP address (http://xxx.xxx.xxx.xxx) instead of the vhost name http://example.com? My VirtualHost configuration: ...
0
votes
1answer
82 views

Can't configure Nginx on Ubuntu 13.10 to work with Subdomains and main domain name

I am new to Nginx, switched 2 days ago from Apache. With Apache my website had 1 main url (www.example.com & example.com) and 2 subdomains (s1.example.com & s2.example.com). I succeeded to ...
1
vote
1answer
694 views

Can I have two (or more) Apache VirtualHosts separated by subdirectories?

I think this is a simple question, but let me explain better. I have the following development environment: Ubuntu Server 12.04 LTS; Apache 2.4; PHP 5.5; Everything is working fine, except the ...
0
votes
3answers
40 views

Apache Multiple instances without specifying the port in the address

I'm after some apache advice, I'm looking to find a way to make apache instance on the fly, thats the easy bit so i generate a .cof and a crtl and start the instance on say port 389. So now if i go ...
0
votes
1answer
71 views

Apache2 - Virtual hosts, directing all traffic besides set subdomains to a certain subdomain?

I am currently making use of an alternate sub-domain (besides www) that i am hosting with apache. I am struggling to understand how something works within this. I have for example, dev.test.com and ...
0
votes
2answers
152 views

Enable Apache Virtualhost Site To Only View Over SSL [duplicate]

Viewing site over http and https are both working but prefer to configure it so that ALL visitors ONLY go through the SSL connection so that it always start with http*s*://www.example.com - what am I ...
-1
votes
1answer
63 views

VirtualHosts: * vs IP Address

When declaring a VirtualHost does it matter if I use an asterisk or an IP if I only have one IP I'm working with? Note, I do have several domains. The reason I ask is because I get warnings when ...
-1
votes
2answers
89 views

Virtual host does not seems to work

It seems that the most basic virtual host does not work under apache 2.2 : # httpd.conf Listen 80 .... Include /private/etc/apache2/extra/httpd-vhosts.conf the httpd-vhosts : # httpd-vhosts.conf ...
1
vote
0answers
366 views

Virtual hosts with port 80 & 443 not working

I can't figure out why I can't connect to my VPS. httpd.conf: i added: Listen 80 listen 443 NameVirtualHost *:80 NameVirtualHost *:443 <VirtualHost *:80> SSLEngine off ServerAdmin ...
1
vote
2answers
267 views

Server-level block, deny, or redirect based on User-Agent?

We've recently begun having trouble with web-scraper/DDoS service 80legs taking down our servers a couple times per week due to their abusive crawling practices. Initially we were simply dropping in ...
-5
votes
4answers
129 views

How to get the specs of a server? [closed]

I have a virtual machine and boss says "Hey, get me the specs on that server." presumable because she wants to acquire a comparable one and will ask me to set it up from a backup of our current one. ...
0
votes
1answer
745 views

Apache vhost always show me the same content on different subdomains

I have two subdomains on my VPS, i have registered the two subdomains in my DNS pointing to the same IP address. the version installed is Server version: Apache/2.4.7 for Ubuntu 12.04. I've enabled ...
1
vote
1answer
211 views

Access Apache VirtualHost from localhost

I have a DirectAdmin setup with Apache on a server which is behind NAT. Everything is working correctly when accessing a VirtualHost from outside the machine (either through the Internet and the ...
0
votes
2answers
478 views

Apache SSL virtual host using SNI ignores ServerName

I would like to serve SNI-enabled clients that send the wrong host name a 400 Bad Request, but Apache always serves the default virtual host in this situation. I cannot add a default virtual host that ...
-1
votes
1answer
291 views

Setting up Virtual Hosts in XAMPP on Windows [closed]

I'm having trouble setting up some virtual hosts using XAMPP. The machine name is server02.bb.net and is only accessible on the Intranet. I want other machines on the network to be able to see the ...
0
votes
1answer
124 views

SSL isn't working with Apache

I was trying to install a SSL certificate on my VPS. I Generated the CSR, and Got the Certificate and Intermediate CA. I am working on apache 2 on ubuntu server 13.10. So I used the Default SSL ...
0
votes
6answers
5k views

Use the LAN based IP address to access local Apache on laptop when working outside the network?

<VirtualHost *:80> DocumentRoot "D:/Projects" ServerName 192.168.11.74 </VirtualHost> Why doesn't this work ? How to access websites on the local box (Windows, Apache, MySql, PHP) ...
1
vote
1answer
107 views

Apache Auth directive cascade to alias directories

I have a reasonably lengthy block of authorization config directives within an Apache <Directory> context in a virtual host configuration file. It has LDAP credentials and a complex filter that ...
0
votes
1answer
299 views

Apache Proxy Reroute to Different Port

Trying to redirect my subdomain to a different port other than port 80. The request is received via port 80 and I'm trying to direct the requests to port 10001 as there's a mono server running ...