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
-1
votes
1 answer

Vhosts - *.80 redirect works, why doesn't *.443?

I've setup a redirect for capturing all http: (port 80) traffic. This is to resolve a security issue (ie. don't allow anyone direct access to the server). DocumentRoot "/var/www/html/redirect" This is the first…
Adam Harkus
  • 2,050
  • 2
  • 36
  • 64
-1
votes
1 answer

How to arrange a website deployment with Ansible such that Apache is not restarted if there is no vhost change?

I am presently learning Ansible, and to apply what I am learning, I am converting some old Bash install scripts to build a web server. One of my use cases is to install or upgrade a website. The process generally is: Copy Apache vhost definition…
halfer
  • 19,824
  • 17
  • 99
  • 186
-1
votes
1 answer

Hosts file how do I allow only one domain name

I'm setting up an iMAC in a store. They want to have the browser open to their website and restrict access so people can't use the computer to browse any other site. I see many discussions online but no actual code sample. Can you please write…
Charles
  • 119
  • 1
  • 3
  • 7
-1
votes
1 answer

Convert Apache VirtualHost to nginx Server Block for Dynamic Subdomains

I have a web app running on Apache where the virtual hosts file is configured to route requests to subdomains to specific folders. Rather than having to modify the host file every time a subdomain is created, this allows me to dynamically route…
JASSY
  • 91
  • 7
-1
votes
1 answer

How to configure multiple symfony2 projects (dev enviroment) on the same server

I do not use a cache and still I get the same error in the dev enviroment. I have three different projects that I want to run locally (dev pc Ubuntu) for development. Does anyone have a tip for me, how do I configure the vhosts or projects? Thanks…
-1
votes
1 answer

Serving /home/[user]/http/[domain] using vhost results in 403

Commenting out httpd-vhosts.conf and browsing goes to the default directory /srv/http with no problems. /etc/httpd/conf/extra/httpd-vhosts.conf: ServerName test.loc ServerAlias www.test.loc DocumentRoot…
Shane
  • 1,190
  • 15
  • 28
-1
votes
1 answer

Followed all steps but not working virtual host in windows 7

Recently I've tried to create virtual host in windows 7 with wampserver latest version. I've changed configuration but now it's working as 'localhost' but I've given different name like 'mydev.test' like that but it's not working as 'mydev.test'…
Computer Lover
  • 61
  • 1
  • 12
-1
votes
1 answer

Removing Apache Vhost

I'm in a new pc, and the previous intern has configured a virtual host(vhost) on Apache. I'm trying to remove, because i don't accessing any project on folder "www"(wampo).It always redirected to folder "bignardi"(laravel). I remove the lines from…
allan
  • 143
  • 1
  • 2
  • 13
-1
votes
2 answers

symfony project + wordpress blog in a directory

I would like to build a symfony2 website with the blog manage by wordpress. www.myapp.com -> managed by symfony2 www.myapp.com/blog/* -> managed by wordpress I need symfony2 not to manage with routes www.myapp.com/blog/*. I don't know if I…
-1
votes
1 answer

How to Set and Access Multiple Document Root(Directory) in Apache (Wamp Server)

I tried to add ; ServerName localhost DocumentRoot "d:\www2\" --> tried d:\www2\ Options Includes Indexes FollowSymLinks Order allow,deny Allow from all Directoryindex index.php…
user60783
  • 78
  • 3
  • 12
-1
votes
1 answer

Can Apache handle HTTP request on its own?

I need to return HTTP header value for specific request uri. I hope there's a same thing like ErrorDocument but not ErrorDocument. ErrorDocument 404 "404 error" HandleMyRequest /what-is-my-accept-language %{HTTP:Accept-Language} Of course I know…
Deckard
  • 1,409
  • 6
  • 32
  • 59
-1
votes
1 answer

More than one certificate on Apache (namebased)?

I need to install 3 different certificates on my apache - but I only got 1 IP(v4). Is there a mod(for apache) or whatever to use more than one certificate on namebased vhost's?
Patrick
  • 100
  • 1
  • 9
-1
votes
1 answer

How to change default vhost config in Nginx?

I'm using Nginx and I'm having difficulties in setting up web hosting accounts via cPanel. Every time I create a new account in WHM, it's automaticly creating the config file for the domain in the vhosts folder (/etc/nginx/vhosts). The issue is that…
user2298995
  • 2,045
  • 3
  • 19
  • 27
-1
votes
1 answer

URL Redirecin Vhost

How can i redirect something.some.* to something.some in vhos I tried various rewrite rules but none worked so no use pasting them..
Engineer
  • 5,911
  • 4
  • 31
  • 58
-1
votes
1 answer

vhosts configuration not working on couchDb

I am facing a curious problem. I have a couchApp hosted on Iris couch. I purchased a domain name from godaddy and set my CNAME (WWW) to my database address on iris couch.When I type my domain name in the browser I get a couch db…
Akshat Jiwan Sharma
  • 15,430
  • 13
  • 50
  • 60
1 2 3
67
68