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
0
votes
4 answers

Apache: Virtual Host and URL Rewriting inside httpd.conf for Kohana Framework

I'm using the Kohana Framework 3.x. My Webserver is Apache and I use Virtual Hosts, because I manage more than one websites with my Server. My httpd.conf looks like this: ServerName www.myPage1.com ServerAlias myPage1.com …
Pascal Klein
  • 23,665
  • 24
  • 82
  • 119
0
votes
1 answer

Setting up virtual host/multiple stores on linux for opencart

I am using Opencart 2.0 and I want to set up a virtual host for the second store. I am also using Xampp on Kali Linux. I have the main store at /opt/lampp/htdocs/main_store/ and the url I am using to access it is localhost/main_store I have created…
user7060819
0
votes
0 answers

How to maintain get and post data in virtual host?

I have nodejs, php and apache2 running on ubuntu 14.04. There are nodejs listening on different ports (eg. 3000, 3001...). So, I want to setup virtual host, so that when user requests the nodejs service, the user can go…
Stephen
  • 19
  • 1
  • 3
0
votes
1 answer

Apache configuration to modify URLs in the address bar of browsers

I'm new to Apache. I'm trying to configure it on my localhost to do some testing. I've already deployed a PHP web site on Apache and it works well. My httpd-vhosts.conf is: DocumentRoot "C:\xampp\htdocs" ServerName…
Just a learner
  • 26,690
  • 50
  • 155
  • 234
0
votes
2 answers

How to change path in the laravel config if It's located in the folder upper then public?

I have laravel 5 and config file in the config folder and My css located in the resources folder which is a same level with public folder where located index.php. Virtual Host Apache config looks to the public folder as a root site directory, but in…
Nesquik27
  • 234
  • 1
  • 7
  • 18
0
votes
0 answers

Unable to reach default server web site with name-based vhost configuration

I'm currently using name-based virtual host configuration /conf/extra/httpd-vhosts.conf in apache to serve few different websites from the same IP address, just like in the apache documentation. ServerName…
ray
  • 41
  • 9
0
votes
1 answer

Apache 2.2.17 + wamp + windows 7 + gives 403 when configure virtual host

DocumentRoot "D:/projects/RnD" ServerName dev.ei-rnd.loc Options FollowSymLinks AllowOverride all Order Deny,Allow Allow from all …
Rukmi Patel
  • 2,619
  • 9
  • 29
  • 41
0
votes
1 answer

What is the right way to configure Apache to serve a project over a local network

I have my project running in an apache virtual host. the name of the conf file is btapp.local.conf this is the content of the file ServerName btapp.local DocumentRoot /var/www/btapp/app/webroot
isnvi23h4
  • 1,910
  • 1
  • 27
  • 45
0
votes
0 answers

virtual host setup laravel xampp

I am trying to set up virtual host with xampp for my laravel project. I have done following changes. on httpd.conf Listen 8080 # Virtual hosts Include conf/extra/httpd-vhosts.conf I normally access my localhost files using localhost:8080 port on…
Nurul Alam
  • 342
  • 3
  • 22
0
votes
1 answer

Need to run Multiple JBoss applications on different web connectors

I'm running a JBoss EAP 6 instance that has 5 applications running inside. Each one needs it's own socket bindings, web connector and thread pool. I've defined 5 web connectors that bind to each socket binding group (one for each app) as well as…
T.O.
  • 72
  • 4
0
votes
1 answer

Symfony 3 - need to setup VirtualHost?

I have some very basic question about Symfony and VirtualHost. I have my Symfony3 installed in E:/XAMPP/htdocs/icp Everywhere i read, to setup VirtualHost, so I did it DocumentRoot…
JohnPoe
  • 61
  • 8
0
votes
1 answer

Apache2: 2 virtual hosts (domain & subdomain) / 1 IP - not working

I have this conf-file set-up: Listen 80 ServerAdmin webmaster@localhost ServerName test.example.com WSGIScriptAlias / /var/django/test/test/wsgi.py #WSGIPythonPath /var/django/test …
Kev
  • 557
  • 1
  • 7
  • 26
0
votes
1 answer

How do I upload files into the right folder path?

I'm using a digital ocean Ubuntu LAMP on 14.04 , to configure let's encrypt certificate I followed this post : https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-14-04 and as a Pre-requisites I…
SS2015
  • 5
  • 3
0
votes
1 answer

Virtual Hosts in CentOS 7 + Laravel

I have problems with my VirtualHosts The Directory of the website is /var/www/html/laravel The httpd.conf file is When open the website show me this error: Somebody can help me? Thanks
user2227682
  • 73
  • 1
  • 2
  • 8
0
votes
1 answer

Nginx virtual hosts not working

I recorded a video https://youtu.be/dmezVzASr5A I have: linux ubuntu 16.04 (Lubuntu) nginx 1.10 php7.0-fpm php7.0 mysql 5.7 I did: created domain /etc/hosts (test2.test) created virtual hosts withing sites-available folder (test2.test…
Dima Shvets
  • 31
  • 1
  • 7