Questions tagged [vhosts]

A virtual host of a HTTP/HTTPS webserver (virtual host in Apache, server block in nginx, ...)

A virtual host of a HTTP/HTTPS webserver (virtual host in Apache, server block in nginx, ...). Use this tag if your question refers to configuration and/or bugs in relation to the virtual host you configured for your application.

The term Virtual Host refers to the practice of running more than one web site (such as company1.example.com and company2.example.com) on a single machine. Virtual hosts can be "IP-based", meaning that you have a different IP address for every web site, or "name-based", meaning that you have multiple names running on each IP address. The fact that they are running on the same physical server is not apparent to the end user.

Apache was one of the first servers to support IP-based virtual hosts right out of the box. Versions 1.1 and later of Apache support both IP-based and name-based virtual hosts (vhosts). The latter variant of virtual hosts is sometimes also called host-based or non-IP virtual hosts.

https://httpd.apache.org/docs/2.4/vhosts/

1009 questions
5
votes
1 answer

Apache, how to handle unknown php file like standard URLs?

I am have a Symfony website where I have renamed the main entry point so "index.php" can't accessed nor being indexed by search motors. It works well. But, when I try to access this file I get a 404 file not found, this 404 page is handled by Apache…
COil
  • 7,201
  • 2
  • 50
  • 98
5
votes
4 answers

Eclipse PDT, how to setup 'Run Configurations'?

Eclipse PDT is very slick, but here's my issue, Re: Launcher (run configurations) I'm trying to keep things very clean, concise on my local machine (with WAMP stack) and I have a number of virtual hosts configured, that keep my URL's easy to use. In…
Robert
  • 61
  • 1
  • 4
5
votes
1 answer

Can I bind a queue from a different vhost?

I have an exchange with a vhost, user, etc from that exchange I bind different queues. The exchange and the queues are in the same vhost. Now I want to create a different vhost for a different queue but I cannot bind this new queue from the previous…
Danilo
  • 199
  • 1
  • 2
  • 12
5
votes
1 answer

Non-wildcard certificates with dynamic apache vhosts

I'm trying to dynamically read the location of the SSL certificates depending on which url was used to connect to my server. I have attempted a few different ways but none seem to work. Currently I have the config as noted below UseCanonicalName…
Fennek
  • 197
  • 1
  • 11
4
votes
0 answers

apache server keeps crashing on ubunutu, ssl: caught SIGTERM, shutting down

i have a windows machine and have ubuntu as a guest OS on VM. i set up apache onubuntu and im trying to configure ssl on that server but apache keeps crashing after following all instructions i found on the internet. I have my ssl files in…
4
votes
1 answer

You don't have permission to access / on this server - Apache 2 on Mac OS X Mojave

I kept getting You don't have permission to access / on this server. I have this in my httpd.conf # # This is the main Apache HTTP server configuration file. It contains the # configuration directives that give the server its instructions. # See…
code-8
  • 54,650
  • 106
  • 352
  • 604
4
votes
1 answer

Nginx - error_log for dynamic vhosts

How can I have an error log file for dynamic virtual hosts? server { listen 80; server_name ~^(?[^.]*).(?[^.]*).dev.example.com; root /var/www/projects/dev/$user/$folder/htdocs; access_log…
3pepe3
  • 573
  • 6
  • 23
4
votes
2 answers

Add new virtualhosts on Apache without restarting server?

I've got Apache working properly, virtual hosts work as expected. My operating system is Windows 7. However, I've got one problem, which I'm trying to find the answer to, and Google didn't yield much - for Windows anyway, only for Linux (which is…
whitstone86
  • 295
  • 1
  • 4
  • 16
4
votes
1 answer

Mod_pagespeed is enabled. FileCachePath must not be empty:

I've tried to restrain myself from asking too many questions on Stack Overflow, but I have been trying to get mod_pagespeed enabled on my Apache2 server for a couple days now, and am ready to start pulling out my hair hah. I installed mod_pagespeed,…
TJB
  • 3,706
  • 9
  • 51
  • 102
4
votes
2 answers

PHP Codeigniter - Apache virtual host setup trouble

This has been doing my head in. Hope you guys can help. I can't find out where the error lies. httpd-vhosts.conf NameVirtualHost 127.0.0.1 DocumentRoot /opt/lampp/htdocs ServerName…
Tilman Koester
  • 1,739
  • 2
  • 11
  • 25
4
votes
2 answers

Apache ssl-enabled vhost returns random 400 bad request

I've setup two local vhosts (http and self-signed https) for billing.example.com and trying them in firefox with firebug. Http vhost only purpose is redirecting all requests to https. Almost each time I request page from https, one or two files with…
Kai
  • 1,478
  • 2
  • 15
  • 15
4
votes
3 answers

ISPConfig Vhost allowing clean URLs in Laravel

I have an existing server which is working well hosting a number of sites using nginx and ISPconfig. However I have created a new site and wish to use Laravel. I've installed Laravel successfully via composer and have got as far as seeing the…
Darren H
  • 910
  • 8
  • 24
4
votes
0 answers

You don't have permission to access / on this server when I activate Virtual host in WAMP server

I'm trying to setup a virtual host on my server. I'm in windows server 2012. When I activate the vhost by uncomment the line Include conf/extra/httpd-vhosts.conf , I get this error: You don't have permission to access / on this server This is my…
tiaana
  • 103
  • 8
4
votes
2 answers

Automatically Host User Domains in Rails/Apache

I'm currently developing a user facing web application that gives each new user their own subdomain on the site, which is fine (using subdomain_fu), but is there a way to let a user map their own domain to this subdomain? I know how to do this…
wastedhours
  • 257
  • 5
  • 14
4
votes
2 answers

VirtualDocumentRoot handling non-existent folders

Using Apache, I have set up the VirtualDocumentRoot and it works this way: UseCanonicalName Off ServerName app.example.com ServerAlias *.example.com VirtualDocumentRoot "/home/domains/example.com/%1"
Praveen Kumar Purushothaman
  • 164,888
  • 24
  • 203
  • 252