Questions tagged [virtual-hosts]

Virtual hosts or virtual hosting is a method for hosting multiple domain names (with separate handling of each name) on a single server (or pool of servers).

Virtual hosts or virtual hosting is a method for hosting multiple domain names (with separate handling of each name) on a single server (or pool of servers).

This allows one server to share its resources, such as memory and processor cycles, without requiring all services provided to use the same host name. The term virtual hosting is usually used in reference to web servers but the principles carry over to other internet services.

One widely used application is shared web hosting.

There are two main types of virtual hosting, name based and IP based. Name based and IP based virtual hosting can be combined, a server may have multiple IP address and serve multiple names on some or all of those IP addresses. This technique can be useful when using SSL/TLS with wildcard certificates.

241 questions
2
votes
1 answer

Server alias for virtual host doesn't load site

Here's my current virtual host setup for xampp: ServerAdmin webmaster@localhost DocumentRoot c:/misc/proj/usermap ServerName usermap ServerAlias usermap2 ErrorLog c:/misc/proj/usermap/logs/error_log CustomLog…
tom
1
vote
1 answer

how can I fix my virtualhost setup after upgrading my ubuntu server to 10.04

I recently updated my ubuntu server to 10.04 and my virtualhost setup no longer working correctly. I host two sites from my server and before the update the addresses linked correctly to their respective sites, but afterwards both addresses link to…
Finglish
  • 9,692
  • 14
  • 70
  • 114
1
vote
1 answer

Custom domains in CodeIgniter web app?

I'm using CodeIgniter to build my first web app. For demo purposes, users can preview their site by simply using their Facebook username as a paramater (using public data from the Graph API). So they access their data…
Joe W
  • 998
  • 6
  • 16
  • 36
1
vote
1 answer

Apache VirtualHost won't work (Wamp/Win7)

I own two domains which I want to point to my local server here at home: www.first.com www.second.com They both point to my own server here at home (Yes I've already managed the A-record config at my webhotel where I registered the domains). I've…
Weblurk
  • 6,562
  • 18
  • 64
  • 120
1
vote
1 answer

Vhost configuration on apache

I've a problem with my apache server. I just did a fresh install(debian 6.0). I created two config files: mysite.com and dev.mysite.com in /etc/apache2/sites-available, I enabled them with the a2ensite command, and I reloaded the…
J4N
  • 19,480
  • 39
  • 187
  • 340
1
vote
1 answer

xampp 1.7.3 upgrade broken virtual hosts access forbidden

I've got a similar issue to that reported by another user here XAMPP v1.7.4 installation issues,local host not working Upgrading xampp to 1.7.3 (osx) in my case has broken my virtual hosts. In /etc/hosts I've got 127.0.0.1 …
xiatica
  • 1,546
  • 2
  • 20
  • 24
1
vote
1 answer

Point a local domain to localhost:3000

Hey, I would love to point a local domain to localhost:3000 or other ports on which I am running my Wubrick instances (for Rails) I can not find an apache2 config to point a local domain to these wubrick instances (or simply localhost:3000). Can…
Stoic
  • 10,536
  • 6
  • 41
  • 60
1
vote
0 answers

Why does my Apache proxy request redirect to the wrong host on first request

I'm using Apache to serve some html and JavaScript files in my /Apps folder and I'm using to proxy the rest of the requests to another web server running on the same system via ProxyPass. Here's an example from my conf:
Alex L
  • 64
  • 4
1
vote
0 answers

WAMP 3.1 setup on Windows 10. Can't access online

I've been trying two days straight to make this work. I want to make my server available online so I can work with another guy on this project. The goal is mainly to have two things: The www website available through my public ip MySQL available to…
Johnny Prescott
  • 263
  • 6
  • 23
1
vote
1 answer

www and https redirects not working as desired

I can't seem to get myredirects to work as desired. My objectives are: Redirect http://example.com to https://www.example.com Redirect http://www.example.com to https://www.example.com Objective 1 has aleady been achieved, but the problem is…
Chris Mwai
  • 91
  • 1
  • 14
1
vote
1 answer

XAMPP + virtual hosts + group shared folder

I have folder which mount for all users which in group 'common' for sharing files /home/.common/ mounted to /home/common by fstab bindfs#/home/.common /home/common fuse group=common,perms=g=rwx I want to share sites folders too. I put sites…
Shara
  • 801
  • 3
  • 11
  • 23
1
vote
2 answers

Virtual Hosts on XAMPP redirecting to /dashboard

Need help! :( I am working on this for days, and still cant figure out the solution. I am working with XAMPP 5.6.30 and Windows 10 I did the steps to configure new virtual hosts.. Uncommenting Include conf/extra/httpd-vhosts.conf Introducing my…
1
vote
1 answer

How can I create dynamic virtual hosting like *.example.com?

Where * is different for each client like apple.example.com, pearl.example.com. These all should be routed to the same IP and same directory. How to modify the hosts file and the httpd config? More detailed example:
Hey.There
  • 15
  • 5
1
vote
1 answer

MAMP Virtualhost on mac not working

I tried to make a virtualhost with MAMP for the first time. I rode several tutorials but what I did is not working... Let me explain : First I added in /etc/hosts a new line 127.0.0.1 domain.dev In virtualhost.conf, I added
Seabon
  • 241
  • 1
  • 3
  • 14
1
vote
1 answer

MAMP - Virtual Hosts not working

I'm having trouble getting Virtual Hosts to work on MAMP. Here's my hosts file: 127.0.0.1 localhost 127.0.0.1 mysite Here's my httpd-vhosts.conf file: # # Use name-based virtual hosting. # NameVirtualHost *:80 # # Custom Virtual…
yurden
  • 152
  • 1
  • 16