Questions tagged [virtual-host]
The virtual-host tag has no usage guidance.
166
questions
0
votes
0
answers
62
views
MacOs - Custom project in Sites folder on localhost throws 403
I was setting my local env for the custom project in Sites/ folder following this set up. Currently on Monterey 12.3.
When accessing localhost in my browser I get:
403 Forbidden
I have run trough ...
-2
votes
1
answer
35
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 ...
0
votes
1
answer
367
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 ...
0
votes
2
answers
494
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" ...
1
vote
1
answer
37
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/...
1
vote
0
answers
102
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 ...
0
votes
1
answer
44
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
...
0
votes
1
answer
437
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 ...
0
votes
1
answer
97
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 ...
0
votes
1
answer
171
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&...
0
votes
0
answers
114
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 ...
0
votes
0
answers
115
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
...
0
votes
1
answer
125
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 ...
1
vote
1
answer
81
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 ...
0
votes
1
answer
56
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 ...
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 ...
0
votes
0
answers
277
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>
...
1
vote
1
answer
594
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 ...
0
votes
1
answer
45
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&...
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 ...
0
votes
1
answer
277
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 ...
0
votes
1
answer
116
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 ...
0
votes
1
answer
7k
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 ...
-1
votes
1
answer
405
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 ...
0
votes
1
answer
309
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
...
-1
votes
1
answer
314
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 ...
0
votes
1
answer
1k
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 ...
0
votes
1
answer
100
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 ...
1
vote
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:
...
0
votes
1
answer
390
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 ...
0
votes
1
answer
45
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
<...
0
votes
2
answers
736
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/...
2
votes
1
answer
296
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 ...
1
vote
1
answer
47
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 ...
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
...
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 ...
0
votes
1
answer
5k
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/...
0
votes
1
answer
94
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 ...
1
vote
1
answer
955
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 ...
2
votes
1
answer
12k
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 ...
1
vote
0
answers
92
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....
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 ...
0
votes
1
answer
651
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 ...
2
votes
0
answers
559
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. ...
-1
votes
1
answer
999
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 ...
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 ...
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....
0
votes
1
answer
133
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/...
0
votes
0
answers
714
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 ...
0
votes
1
answer
728
views
macOS Sierra Virtual-host not working
About a month ago I updated my Macbook Pro from El capitan to Sierra.
From that moment my mysql and apache wound't work anymore.
I managed to fix those two (mysql only works now with sudo mysql....