Questions tagged [virtual-host]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
149 views

Returning error code with CGI script in Status header does not redirect to ErrorDocument

I'm playing around with apache2 and CGI scripts for a personal home page and I'd like to have subdomains. I've run into the issue, that if I'd want to return an error code, more specifically I've ...
thebighusig's user avatar
0 votes
0 answers
109 views

Get php-fpm version used by an Apache2 virtualhost

I need to connect to a Ubuntu server with ssh as a root user and determine which version of php-fpm is used by a virtualhost (I know in advance the virtualhost config name). I'm not the only ...
Florian Lemaitre's user avatar
-1 votes
1 answer
195 views

What's the difference between apache "options" directive code that append values with "+" sign & the values without "+" sign? Example code is in body

what the difference between this code=> <Directory "C:\xampp\htdocs\coderevenge.com"> options Indexes FollowSymlinks Includes ExeCGI AllowOverride All Require all ...
CodeStar's user avatar
0 votes
1 answer
2k views

Apache Web Server port 443 and Tomcat port 8080, redirect not working

I have a Java web application on CentOS on Google Cloud. I can access my web app with http://mydomain:8080. I wish https://mydomain (without 8080 in URL) to lead to application, but instead, I just ...
LosmiNCL's user avatar
0 votes
2 answers
894 views

All CWP accounts and domains stuck on Account Suspended

Woke up and saw all domains saying "Account Suspended" while I am the admin and domains are all in default account and toggles are all On. Did try toggling the "Suspend Account" ...
Code Bounty's user avatar
1 vote
1 answer
157 views

What's the purpose of this block on apache virtualhost?

Often times, many people using this configuration on their Apache virtual host. <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/...
Liso's user avatar
  • 51
1 vote
0 answers
124 views

Apache is serving only one page - Ubuntu 20.04 - Apache 2.4.41

I have installed Apache2 on my Ubuntu 20.04 server and created virtual hosts for 2 of my different websites. The idea is to serve one content for dog.com and a different content for cat.co.uk I have ...
Tomas.R's user avatar
  • 195
0 votes
1 answer
216 views

Why do we need the <Directory> section in the following virtual host's config file?

Here is the article explaining how to install MediaWiki on Ubuntu Server. And here's how they tell us to configure the virtual host: <VirtualHost *:80> ServerAdmin admin@your-domain.com ...
JConstantine's user avatar
1 vote
1 answer
1k views

Multiple reverse proxy host in apache virtual host file causing both domains going to just 1 application

I have the following virtual host file. I have 2 applications that run on port 26876 and 6876. When I add this into my virtual host, it only goes to the 26876 site on both domains. What could be wrong ...
Patoshi パトシ's user avatar
0 votes
1 answer
178 views

Apache breaks when virtualhost is set to IP instead of wildcard

I have a VirtualBox with Ubuntu 20.04.01 running on it and I am trying to install a free admin panel called Froxlor (froxlor.org). I've successfully done everything except figuring out the ...
Foxler2010's user avatar
0 votes
1 answer
1k views

Apache2 virtual hosts not working for SSL config

I've had this virtual host setup on HTTP where different domains would serve files from different locations. This is my 000-default.conf file: <VirtualHost *:80> <Directory /var/www/html&...
Svend Hansen's user avatar
0 votes
0 answers
125 views

Virtual Host Overriding Hello World On Another Server

For some reason, the content of 0rcan0mic.com on my main server is overriding constantcounselling.com on another server. I want to get hello world on constantcounselling.com instead of the contents of ...
powerhousemethod's user avatar
0 votes
0 answers
145 views

Virtual Hosting | internal error - server connection terminated

so I set up lot's of virtual domains in my career but I can't get macdougall.ninja to load for some reason. I'm stumped on. The webpage error says: internal error - server connection terminated ...
powerhousemethod's user avatar
0 votes
1 answer
460 views

Can't acccess Apache using ServerName

I'm running a local Apache server with no access outside my network. I want to be able to navigate to sites by the server name. For example, where hostname is my server's hostname and home.lan is my ...
Kyle's user avatar
  • 338
1 vote
1 answer
103 views

Wrong https redirection with two websites on the same server

I have two websites, call them example-1.com and example-2.com deployed on the same server (CentOS 7.5) both served by apache at port 80. The redirection is performed with Virtual hosts (see below for ...
Hayk's user avatar
  • 131
0 votes
1 answer
60 views

Execute php on Apache inside Ubuntu

I installed Ubuntu on VMWare (OS X) and followed the instructions to install LAMP on Ubuntu I also created a virtual host named 'cmsms23'. So the folder structure is: /var/www/cmsms23 I made the ...
user2037412's user avatar
2 votes
0 answers
27 views

Only local machine is allowed to connect to virtual hosts

I have a server with Ubuntu installed, and for no reason, my virtual hosts decided that they only want connections from the local machine. I can go onto my different sites with their regular domains ...
BobLewis's user avatar
0 votes
0 answers
414 views

Is it possible to have in Apache 2.4 different NamedVirtualHost, each with its own SSLProtocol ? I am using SSLStrictSNIVHostCheck

I have defined in ssl.conf SSLStrictSNIVHostCheck On Now, I have defined a series of virtual hosts and I would like to define specific SSLProtocol for each one, such as <VirtualHost *:443> ...
John75's user avatar
  • 1
1 vote
1 answer
977 views

How to host 2 different sites on WAMP server and access them both via the internet?

I can only access my website from another PC if I use the PC/WAMP server hosting the website IP in the url address. This becomes inconvenient since I need to host two different website using the same ...
WhiteRose's user avatar
0 votes
1 answer
46 views

Can be cgi execution be conditioned to ServerName?

I configured several VirtualHost entries. <VirtualHost *:80> ServerName subdomain1.domain.tld [...] DocumentRoot /var/www/html/subdomain1 [...] </VirtualHost&...
174140's user avatar
  • 94
0 votes
1 answer
4k views

DNS wildcard subdomain configuration on Windows 10

I run a WAMP server on Windows 10, and tried to install a Wordpress multisite network on localhost using subdomains. The main domain defined in VirtualHost works and points to a localhost folder. But ...
Vörös Imi's user avatar
0 votes
1 answer
425 views

Changing URL and VirtualHost of Wordpress site

I'll try to explain my situation. I have 2 domains: www.impiantisaettasnc.it www.oasisgaming.it and I want them to point on 2 different sites hosted on my VPS at x.x.x.x address. So I went on my ...
Kodeeo's user avatar
  • 406
0 votes
1 answer
187 views

How to create a VirtualHost on Apache and "import" sites I already made?

I learnt I have to use Apache's VirtualHosts to correctly point different domains to different sites on my server. Before I knew this, I already made 2 different wordpress sites, and they are in ...
Kodeeo's user avatar
  • 406
0 votes
1 answer
10k views

Nginx Redirect to Docker Container

I made my personal server SSL encrypted, so that only port 443 is accessible to the outside world. However, in doing so, I locked my web apps from seeing the outside world. The gist of it is that I ...
Judson James's user avatar
-1 votes
1 answer
478 views

Problems with Apache Virtual Host on Linux MInt 19

Well, I'm trying to make this work on the past three days ago. So I think a little help from the forum will be necessary by now. Initially, I followed this tutorial, and it worked, but I was unable to ...
FabioB's user avatar
  • 65
0 votes
1 answer
388 views

Setting up Apache portable VirtualDocumentRoot under Windows 10

I have the following code in XAMPP's httpd-vhosts.conf: <Directory "/dev/www/"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All # Require all granted ...
Hlsg's user avatar
  • 115
0 votes
1 answer
781 views

Apache2 - Configure two websites, one with ip/port, one with domain

I am hosting two websites on a Raspberry Pi Apache2 server. One website has a domain name, while the second site doesn't. I want to access the second one with the server IP on same port but without a ...
Francesco Gorini's user avatar
0 votes
1 answer
2k views

apache virtual host subdomain not working correctly

I am trying to configure a subdomain: api.example.com (exapmle.com is replaced by my actual domain name) I already had virtual hosts set up with 2 sites: example.com and example.nl they both had ...
C1rcu1tB04rd's user avatar
0 votes
1 answer
258 views

Access to VirtualHosts from the local network

I have a Ubuntu Server 18.04 over VirtualBox VM where I've installed Apache and Nginx for some testing. The VirtualServer example.com up and running on the local machine. That VM is configured with 2 ...
AtomicNation's user avatar
2 votes
1 answer
1k views

Is editing “hosts” file in Windows necessary to host Apache Virtual Hosts?

I'm learning how to host websites on a small server at home. I followed some tutorials where they said you had to edit the "hosts" file (C:\Windows\System32\drivers\etc\hosts) and add the following: ...
Alvaro Bataller's user avatar
0 votes
1 answer
578 views

Apache Virtual Host Mix IP and domain names

I have a case where there's a VPS running on Apache Server on main www folder, No vhosts. Now I need to host some vhosts but I need to access this specific web app from main IP address. The Other ...
Stefano Mtangoo's user avatar
0 votes
1 answer
47 views

How to set up a http website and a https website on single-ip server in Apache?

I want to set up a http website:http://example1.com, and a https website:https://example2.com using the following configuration: Listen 80 Listen 443 NameVirtualHost *:80 NameVirtualHost *:443 <...
peter's user avatar
  • 393
0 votes
2 answers
990 views

apache default virtualhost does not work

I set up two websites on my vps: one is http site example2.com, the other is https site example1.com: Listen 80 Listen 443 <virtualhost *:443> ServerName example1.com DocumentRoot "/var/www/...
peter's user avatar
  • 393
2 votes
1 answer
366 views

Apache forward proxy incompatible with many virtual hosts

I have a Raspberry Pi running Arch Linux ARM that I use as an HTTP server, with Apache/2.4.29 (Unix). Recently, I have been trying to configure this machine as a forward proxy in order to use ...
Federico Marotta's user avatar
1 vote
1 answer
50 views

Apache - Multi SSL certs voiding each other

I have on one of our servers two SSL certs running for two projects, one of which is a wildcard SSL issued to that domain only, which I'll call domain2.com. domain1.com, the other domain has the ...
Phil Gibson's user avatar
1 vote
2 answers
1k views

Configure apache vhost running multiple servers

I want to run a Python 3.* and PHP 7.* server running right next to each other using the following: php.localhost py.localhost My /etc/httpd/conf/httpd.conf: # Dynamic Shared Object (DSO) Support ...
Xorifelse's user avatar
1 vote
1 answer
3k views

Virtual host domains other than .local not working in Chrome

I have virtual host example.dev in my WAMP. I was able to run it in Chrome and Firefox by browsing http://example.dev. In a couple days back, I can no longer run it in Chrome, it keeps redirecting ...
Sithu's user avatar
  • 73
0 votes
1 answer
6k views

How to make multiple virtualhost in docker with php5.6-apache container?

I am trying to create virtual host in container php5.6-apache but when I try to run the command a2ensite. my host_1 file: <VirtualHost *:80> ServerName local.website1.dev DocumentRoot /var/...
Abhishek Badole's user avatar
0 votes
1 answer
103 views

I can not make virtual host work

I am a Linux newbiew and web developer. I am configuring a Virtual Server running Raspbian on a Raspberry PI. I readed a lot of documentation and investigate without results. I have a lot configured ...
Jordi Huertas's user avatar
1 vote
1 answer
1k views

Default Apache config is not matching unmatched requests

Environment Ubuntu 16.04 / Apache 2.4.18 Problem One of my Apache configs is matching every request, regardless of whether the ServerName matches. Even different domains are matching, not just ...
cedmans's user avatar
  • 113
2 votes
1 answer
14k views

kvm Error starting domain: unsupported configuration: Unable to find security driver for model selinux

Trying to start our kvm virtual machines and getting this error after rebooting the physical host machine. Error starting domain: unsupported configuration: Unable to find security driver for model ...
nelaaro's user avatar
  • 12.9k
1 vote
0 answers
93 views

Correct VirtualDocumentRoot directive

What should be the correct value for the VirtualDocumentRoot directive if I have the following folder structure: /example.com/ /example.co.uk/ and wanted to be able to access it using either example....
budji's user avatar
  • 191
1 vote
0 answers
2k views

Should I enable SR-IOV and/or ASPM in bios, on my ESXi server?

Relevant server setup is a SuperMicro X10SRi-F with the VM store via iSCSI LUN (not internal disks). I'm running desktop VMs (among others), so I have an nVidia Quadro 6000 + ESXi 5.5, the latest that ...
Stilez's user avatar
  • 1,625
0 votes
1 answer
659 views

Setting Up VPS / Dedicated Servers for a Small Business [closed]

Okay I'm trying to setup a couple VPS, and a few dedicated servers for some clients. And would like to know the best way to go about it, the servers will be running Ubuntu server. First question: Can ...
Tate A's user avatar
  • 13
2 votes
0 answers
563 views

How to activate RemoteFX on WIN7 Guest Hyper-V on WIN10 Host?

Have Win7 Pro gen1 Hyper-V, all updates, RemoteFX added with 512Mb, SLAT Vt-x etc. OK AMD r9 280x 3GB videocard, Remote FX works on Win10 Guest but only with 512MB max, not working w 1GB video RAM. ...
turdor's user avatar
  • 21
-1 votes
1 answer
1k views

Configuring Apache virtual hosts to run several websites on the same IP address

I have set up Apache Web server on my machine. And trying to serve 2 sites for the same IP, based on the domain’s name. I have 2 domains: example0.com example1.com They redirect to the same ip ...
spin_eight's user avatar
1 vote
1 answer
3k views

Why are localhost requests to an Apache virtual host running locally so slow?

I have my Windows 7 localhost server configured with my main localhost address and a couple of virtual hosts configured to serve cookie-less images and JavaScript (I also have a few other virtual ...
mseifert's user avatar
  • 175
0 votes
1 answer
1k views

Conditional /etc/hosts file

I am trying to add conditions based on ip accessing to localhost on windows 10: /etc/hosts if (ip == '192.168.0.102') 127.0.0.1 www.site.co.uk site.co.uk else #127.0.0.1 www.site.co.uk site.co....
Adrian's user avatar
  • 143
0 votes
1 answer
193 views

Can't access virtualhosts on Centos/apache

I'm running a CentOS 6.8 server using VMWare Fusion and I've got my Apache up and running, though I'm unable to access any virtual hosts. I followed this walkthrough (https://www.digitalocean.com/...
Sean Cunningham's user avatar
0 votes
0 answers
814 views

VSFTPD Virtual Hosts

as far as i know, FTP supports HOST header for some time. So what i want to do is, run vsftp (can run multiple instances if need be) with different hostnames which point to different folders. One ...
Mustafa Yılmaz's user avatar