2022 Developer Survey is open! Take survey.

Questions tagged [virtualhost]

Questions about using Apache to run multiple domains or websites on a single server.

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

Virtual host in Apache redirects to internet ( 301 error)

I have one wm with ubuntu 18.04 and one network adapter set to NAT. I have setup a virtualhost I created servidorweb.orange.sergitorres.com.conf in sites-avalaible and enabled using a2ensite. Apache ...
user avatar
0 votes
0 answers
261 views

Ubuntu 21.10 - Virtual Box not opening

Ever since I updated Ubuntu from 20.04 to 21.10, Virtual Box isn't working. It doesn't even open.
user avatar
  • 21
0 votes
1 answer
50 views

set htpasswd to ask for credentials everytime

Is it possible to configure your .htpasswd file so that it asks for your credentials every time? Right now it only asks initially but I want it so that it asks every time the browser is reloaded. my ....
user avatar
  • 3
0 votes
0 answers
31 views

AJP configuration fails

I am trying to connect to a TC app with the virtual host below. The TC app works directly mysite.net:8080/mysite and serves the entire site from index to compute. However the configuration just gives ...
user avatar
  • 109
0 votes
0 answers
41 views

Apache Virtual Host 443 error On another driver

I edit apache.conf file like this: <VirtualHost *:80> ServerName ali.com ServerAlias www.ali.com DocumentRoot /media/ali/Local\Disk/Projects <Directory /media/ali/Local\Disk/Projects> ...
user avatar
  • 1
0 votes
0 answers
1k views

Apache, SSL, LetsEncrypt, Ubuntu: Custom Domain with Sub Domains & SSL

Original Post at bottom How to setup Apache 2 with SSL certificates via Let's Encrypt on Ubuntu 20.04 LTS using a custom domain with sub domains (a short guide by a guy who took too long to do ...
user avatar
  • 1
2 votes
1 answer
1k views

Not Found The requested URL was not found on this server

This is how my virtual hosts the-square.local.conf looks: <VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port t> # the server uses to identify itself. ...
user avatar
0 votes
0 answers
26 views

How to configure Reverse proxy for nodejs project and virtualhost for wordpress project

My Objectives: I want to run the main website like http://dev.abc.com, which is a Node.js project. I ran the app.js through pm2 and configured the reverse proxy in virtual host in Apache which is ...
user avatar
0 votes
0 answers
154 views

Unable to Install Windows 10 guest OS in Ubuntu 20.04 host using Virtualbox

I used to work with Windows 10 guest OS in Ubuntu host machines using Virtualbox. Recently I bought a ASUS Zenbook (UX325EA-EG701TS). I installed Ubuntu 20.04.2 LTS on it and installed Virtualbox 6.1. ...
user avatar
  • 294
0 votes
0 answers
216 views

Apache2 local virtual host doesn't work

I have a new installation of apache2 on ubuntu 20.04.02, but I have a problem with setting a localhosted virtual host: In /var/www/site.local/htdocs I have my vhost folder. Next I set in apache2.conf ...
user avatar
0 votes
1 answer
216 views

Is there a way to pass the host: value header in a URL for Apache virtual hosts?

I have two virtual host websites on my Ubuntu 20.04 computer outside the regular Apache2 document root. I can access them just fine in my browser on the same computer. I'm trying to also access these ...
user avatar
0 votes
1 answer
660 views

CodeIgniter 4 on Ubuntu 20.04

I have installed my ci4 app in /var/www/html/app directory. Then created codeigniter.conf file in /etc/apache2/sites-available directory and wrote below code *** <VirtualHost *:80> ...
user avatar
0 votes
1 answer
242 views

Simplest way to "isolate" apache virtual hosts

Which is the simplest way to "isolate" Apache virtual sites, so that a potentially compromised site doesn't affect the other sites or the server? To be clear, I am not interested much is ...
user avatar
  • 709
0 votes
1 answer
721 views

Redirect all requests to https://www. using Apache on Ubuntu 18.04

I'm using Ubuntu 18.04 with Apache. I have the following in /etc/apache2/sites-available/000-default.conf: <VirtualHost *:80> RewriteEngine On RewriteCond %{SERVER_NAME} =www.example.com ...
user avatar
  • 131
0 votes
1 answer
123 views

Apache Virtual host goes to Internet

I have setup a virtualhost in ubuntu 18.04: I created cicles.almata.com in sites avalaible and ln in sites-enabled. <VirtualHost *:80> ServerAdmin admin@example.com ServerName cicles....
user avatar
0 votes
1 answer
2k views

Vmware - gcc version (null) was not found

I couldn't install my VMware on Ubuntu. Whenever I execute sudo vmware, I receive a popup asking me to choose the version of gcc. However, unlike other errors similar to this, I am faced to choose a ...
user avatar
0 votes
0 answers
3k views

How to enable SSL for virtual host on Apache Server in Ubuntu 18.04 Machine

I am struggling from 3-4 days to create virtual host with different PHP version. I want the main website to run on PHP 7 (I used PHP 7.4) and a subdomain on PHP 5.6. The subdomain site is too old and ...
user avatar
0 votes
1 answer
75 views

BrowserMatch in Virtual Hosts files

We're busy migrating some websites to a new environment, so also transfer the Virtual Hosts files. I see these lines in the Virtual Hosts files: BrowserMatch "MSIE [2-6]" \ nokeepalive ...
user avatar
  • 165
1 vote
0 answers
75 views

WP Multi-Site Install on Ubuntu 18.04 LAMP Keeps Re-Directing URL

After a few weeks of head banging... I am very near to completing a local development environment for my WP Multi-Site Installation. The final problem that I have (wishful thinking), is that the ...
user avatar
2 votes
1 answer
666 views

How to host a site using apache2 on Ubuntu 20.04 with ip_adress/phpmyadmin accessible

I have a VPS setup with Ubuntu 20.04 and LAMP installed. I could access phpmyadmin then via <ip_address>/phpmyadmin. Later I enabled a virtualhost at /etc/apache2/sites-available/ by adding ....
user avatar
  • 21
1 vote
0 answers
55 views

How to figure out why all subdomains are pointing to the one folder in Ubuntu

I have a Laravel PHP & AngularJS web application at IP XXX.XX.XXX.XXX and when I load either the IP or any subdomain it loads the var/www/html/example/application folder. e.g. random.example.com ...
user avatar
  • 233
1 vote
1 answer
157 views

how to prevent the access to a website by the IP?

How can I prevent the access to a website by the IP? I have a Dedicated Server with Ubuntu 20.04 LTS and Apache. I want to prevent the access to my website by IP. I would like only virtual hosts to be ...
user avatar
1 vote
0 answers
20 views

Unable to resolve custom hostnames in /etc/hosts [duplicate]

I'm running Apache/2.4.41 on Ubuntu 20.04. I'm trying to setup a virtual host. Neither Chrome nor Firefox are able to resolve hostnames specified in /etc/hosts file. Even before setting up the test....
user avatar
  • 11
1 vote
1 answer
250 views

Invalid redirect not defined on Apache2 vhost

Say I have the following Vhost definition in Apache2 <IfModule mod_ssl.c> <VirtualHost *:443> ServerName dummy.com ServerAdmin webmaster@localhost DocumentRoot /var/www/html/...
user avatar
1 vote
0 answers
38 views

Problem set up VirtualHost [duplicate]

I am trying to set up virtual hosts on my laptop (Ubuntu 19.10, Apache/2.4.41) for my convenience. I followed this tutorial, with a few modifications to folder paths but I get this error: Unable to ...
user avatar
  • 11
3 votes
3 answers
4k views

Apache virtual host issue or dns issue?

I posted this question before but I guess it wasn't clear the way I wrote it or something. So I deleted it and here it is again with as much info as I can think of. I created a server using old ...
user avatar
  • 76
0 votes
1 answer
1k views

virtualhost not working in postman but accessible thru CURL

I'm using SLIM framework that I can access using local url: http://localhost:/ but I can't access it thru virtualhost by entering the url: http://dev.slim.com in browser or in postman. It says: ...
user avatar
  • 101
0 votes
1 answer
220 views

Where to point the browser to when using Virtual Host? [duplicate]

When using Virtual Host, where should I point my browser to? I'm trying to set up Virtual Host for Example.com. My understanding is that if all good, I have to point the browser to Example.com/...
user avatar
  • 1,725
0 votes
0 answers
929 views

Ubuntu server 18.04, Dynamic DNS w/google domains - mydomain.com resolves, www.mydomain.com does not

My problem is this - I don't know the best way to end-to-end troubleshoot this dynamic dns setup and hosting. Essentially what I want to is use the google domains dynamic dns service to forward http ...
user avatar
0 votes
0 answers
931 views

.htaccess files being ignored by Apache2 on Lubuntu 18.04

My wordpress install is ignoring my .htaccess file. I am running Lubuntu 18.04 locally with Apache2. The root directory for localhost is at /var/www/html and my wordpress project is in that folder ...
user avatar
  • 273
1 vote
1 answer
105 views

How to forward virtual host to other server?

I have two web servers at home and one external IP. Local IPs on servers is 192.168.1.10 (main server) and 192.168.1.11. On my router I forwarded all 80 and 443 traffic to main server but on my second ...
user avatar
0 votes
1 answer
63 views

Ubuntu(16.04) - virtual Host problem

I used ubuntu 16.04. I configure virtual host in my system and also working properly on local host- using hostname(turboreceiver) and using ip (192.168.0.56). when I try this in my other pc in same ...
user avatar
1 vote
2 answers
360 views

Virtual Hosts of Ubuntu 19.04

I have read several articles and combed over stackExchange, but could not resolve the issue. I have two domain names, and I want to create virtual hosts for each of them. I have created separate ...
user avatar
0 votes
0 answers
82 views

HTTPS to HTTPS reverse proxying

I have an ubuntu server v 16.04 with apache installed. I want to reverse proxy a web server. To be exact i would like to reverse proxy the OWA of my mail server. Internet users hit the url https://...
user avatar
1 vote
1 answer
2k views

XAMPP VirtualHost in Other Directory 403 Forbidden Error

I have created a virtualHost setup according to this website: https://ourcodeworld.com/articles/read/302/how-to-setup-a-virtual-host-locally-with-xampp-in-ubuntu This part of the setup apparently ...
user avatar
1 vote
2 answers
10k views

How to set up domain name and attach it to my server IP address (Apache2)

I have a vps in IONOS with ubuntu 18.04. I have followed this tuto to configure apache , and my new website. Right now , the website work only with ip address but not with domain name. This is www....
user avatar
  • 225
0 votes
1 answer
621 views

Set Self Signed Certificate for single VirtualHosts

I generated a self signed cert for my local development server, following this guide https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-apache-in-ubuntu-...
user avatar
0 votes
0 answers
28 views

New domain on Ubuntu LAMP stack connected to another website

I purchased bardhakryeziu.com and tried to create new virtual host on apache2. What I did was I copied the conf file of my own website amirrami.com and just changed the values. Now I have no idea what ...
user avatar
1 vote
1 answer
2k views

How to get rid of port from url

I'm getting frustrated how to run my wordpress dev environment without port in URL. At best I would like to use virtual host like "mysite.com". I am on Ubuntu and using Docker to run wordpress ...
user avatar
1 vote
0 answers
175 views

How do I install and setup phpMyAdmin on a LAMP Droplet with Virtual Hosts

I am trying to add phpMyAdmin to a droplet/server from Digital Ocean, I am trying to follow this tutorial the tutorial is written for Ubuntu 16.04 I run 18.04. I have currently Installed LAMP stack ...
user avatar
0 votes
1 answer
212 views

Can I host two sites, one domain based and on ip based, on the same apache server?

Am trying to host website example.com on my current Ubuntu server. I have created the directories for it: /var/www/html/example.com/public_html and within sites-enabled I created example.com.conf &...
user avatar
0 votes
0 answers
27 views

apache2 not starting - even after reinstall - on Ubuntu 18.10

So I messed up my virtualhosts, and I did something that somehow broke my whole apache2 install. It wasn't starting, so I copied /var/www to ~/www and all of /etc/apache2/sites-available to ~/www too. ...
user avatar
0 votes
1 answer
47 views

SW recomendation - a tool to admin apache localhosts and mysql database/users?

I need software recommendation - a tool to admin apache virtual hosts and hosts file and probably mysql database creation(not most impotant) and probably mysql users with access to it (all sites ...
user avatar
  • 2,588
2 votes
1 answer
5k views

Apache configure virtualhost SSL certificate. This site can’t be reached

I am trying to configure apache virtual host for ssl. mywebsite.conf <VirtualHost *:80> ServerAdmin info@mywebsite.com ServerName mywebsite.com ServerAlias www....
user avatar
0 votes
1 answer
69 views

DNS Redirection issue

Well, I am lost... I was trying to transfer my WordPress server (on Ubuntu 18.04) from Azure to AWS. I used ManageWP to do this, but had issues with logging in. So I created a new blank WordPress ...
user avatar
0 votes
0 answers
3k views

WebSocket connection to 'wss://test.example.com:8090/' failed: WebSocket opening handshake timed out

I am using https and websocket connection for Laravel project. I have setup virtual host like following: <VirtualHost *:80> ServerName test.example.com ServerAdmin test.example.com ...
user avatar
0 votes
1 answer
206 views

Virtual host pointing to wrong site

I have two sites on the same server configured using virtual host. Site 1 has SSL enabled, while site 2 is non-SSL. Whenever, I change the url of site 2 to HTTP to HTTPs, it will direct me to Site 1. ...
user avatar
  • 11
1 vote
1 answer
186 views

How to create a virtual host in other partition ubuntu 18.04?

I have a partition of /media/ramesh/Backend. I created a folder in this partition and added a virtual host as follows: Step 1: I created a conf file by this code sudo nano /etc/apache2/sites-...
user avatar
  • 121
-1 votes
1 answer
797 views

Local domain is Pinging but not opening in the browser

I have setup local domain for example like this mydomain.test Whenever I ping this domain I receive the following 64 bytes from localhost (127.0.0.1): icmp_seq=87 ttl=64 time=0.028 ms 64 bytes from ...
user avatar
0 votes
1 answer
11k views

Connection refused for Apache virtual hosts on local dev setup [duplicate]

I needed to setup a local LAMP with a specific version of PHP (7.1). On a brand new install of 18.04, I first installed Apache and MySQL. Then I followed this guide to install PHP from ppa:ondrej/php ...
user avatar

1
2 3 4 5