Skip to main content

Questions tagged [virtual-host]

2 votes
1 answer
132 views

Can I install a Let'sEncrypt ssl certificate before I configure a virtual host?

Assuming I am not close on which web server to use, Apache or Nginx but I still want to be over with the SSL certification procedure, can I install a Let'sEncrypt ssl certificate before I configure a ...
automation's user avatar
0 votes
1 answer
996 views

Redirect all non-root routes to index.html on Amazon Linux 2 and Apache

An Amazon Linux 2 instance is using Apache to host an Angular 7 app. The Angular 7 app includes not just index.html, but also several .js files and a subdirectory named assets. What specific ...
CodeMed's user avatar
  • 5,377
0 votes
2 answers
16k views

Could not reliably determine the server's fully qualified domain name

I was following this tutorial to setup two virtual hosts in Centos 7. The issue is i am getting the following error while restarting the httpd. [userme@server ~]$ sudo systemctl restart httpd....
ran's user avatar
  • 111
2 votes
1 answer
2k views

How to Stop a specific virtualhost in apache2

let's say I want to stop only the example2 VirtualHost. How do I do it? sudo service apache2 stop will stop all the VirtualHosts. I want example1 to keep running <VirtualHost *:80> ...
Aman Deep's user avatar
0 votes
2 answers
628 views

Unable to load the AWS ELB on 443 port but able to access ELB url on 80 port

I have 2 webservers under AWS ELB. Each webserver has one virtual host file and bundle.crt, .key files. When I tried to load the ELB with http then its directing to the webservers fine but when I use ...
vil's user avatar
  • 21
0 votes
1 answer
980 views

Apache reverse proxy redirects every address to the same vhost

I have installed a webapp in a virtual machine on my server (both running Debian 8 and Apache2). I used a reverse proxy on the host machine to redirect all the connections made to https://webapp....
giovi321's user avatar
  • 919
0 votes
1 answer
117 views

Apache redirection based on referrer in CentOS 7

How can I configure Apache httpd on a CentOS 7 server so that requests for any path under home.mydomain.com are only served if the referrer for the request was from a path under mydomain.com? And so ...
CodeMed's user avatar
  • 5,377
3 votes
1 answer
920 views

Port 81 for http is redirecting to 80

I have created port 80 and 81 for my Apache. Below is the configuration. Listen 80 Listen 81 <VirtualHost *:80> DocumentRoot "/var/www/html/wp" ServerName www.test.tk </VirtualHost&...
superman's user avatar
2 votes
0 answers
253 views

H2O Webserver - Multiple domains - Is possible ? Or current version is only for one domain?

I'm testing h2o server : (some urls ) https://github.com/h2o/h2o/wiki https://calomel.org/h2o.html All works fine with only one domain but when I try to load multiple domains I can't load ...
Ricardo Cabello Torres - Brqx's user avatar
0 votes
2 answers
1k views

Making domain-name only accessible web server with apache2

I have a domain name example.com and a VPS with a static IP address 123.123.123.123. I want the browsers to provide the domain name to access the website content. In pratice I want people see my ...
Carlo's user avatar
  • 103
3 votes
0 answers
2k views

Use apache virtual host to redirect a subdomain to internal ip preserving passed port

I've been looking for a while to the answer to this question and I seem to find slightly different needs from people asking questions and they get wildly different answers... but none of them seem to ...
TonyMorello's user avatar
1 vote
2 answers
95 views

Is there some security restriction preventing apache2 from listening on a high port?

I have configured an Apache2 virtual host to listen on a port above port 80, 8011 in this case. apachectl configtest returns no error in regards on the usage of the high port, yet netstat indicates ...
vfclists's user avatar
  • 7,909
0 votes
1 answer
1k views

setting up permissions for Virtual Host on Centos 7

I am following a book's chapter on setting up Virtual Hosts. The process is: 1.create a file /etc/httpd/conf.d/example.com.conf 2.set its content to <VirtualHost *:80> ServerName www....
sanjihan's user avatar
  • 415
3 votes
1 answer
4k views

How to setup virtual hosts to point to two diffrent directories

I have one domain and a sub domain which are supposed to point to two different folder, i have tried this help but still i have issues. (https://www.digitalocean.com/community/tutorials/how-to-set-up-...
udemethegrtman's user avatar
1 vote
3 answers
6k views

Multiple virtual host in Centos 7 is not working together

My server information is Server version: Apache/2.4.6 (CentOS) Server built: Nov 19 2015 21:43:13 I am trying to configure virtual host for 2 different sites: biz.example.com and pin.example.com ...
Debashis's user avatar
  • 111

15 30 50 per page