Questions tagged [virtualhost]
Questions about using Apache to run multiple domains or websites on a single server.
224
questions
0
votes
0
answers
46
views
Unable to reach site via apache virtual host
I am trying a lot by configuring my apache configuration to have virtual hosts for external and internal use.
The public virtual host is used for nextcloud and the internal virtual host should be for ...
0
votes
1
answer
248
views
Virtual host alias doesnt work but localhost:80 does
Im trying to set up virtual hosts via apache2 on WSL2.
I have my webpage working properly by http://localhost:80 but not under http://myalias.local
I have positive response for ping myalias.local in ...
2
votes
1
answer
1k
views
Apache virtualhost port 443 serves content from port 80 configuration
I'm running Apache 2.4.52 on Ubuntu Server 22.04.
I'm trying to run https through port 443, eventually aiming to have a redirect from port 80 to force content on https. However, Apache seems to be ...
0
votes
1
answer
147
views
Apache Virtual Hosts - Linking to same website
I set up two Apache Virtual Hosts for my two forums. When visiting one of them, it links to the root domain page.
Here is my first virtual host
<VirtualHost *:80>
ServerName krypt.fun
...
0
votes
0
answers
25
views
Local Server throws 403 after reinstalling KDE Desktop and SDDM
Systeminfos:
Ubuntu 22.04
KDE-Plasma-Version: 5.24.6
KDE-Frameworks-Version: 5.92.0
Qt-Version: 5.15.3
Kernel-Version: 5.15.0-10048-tuxedo (64-bit)
During a system cleanup, I seem to have uninstalled ...
0
votes
0
answers
65
views
unable to access Apache Virtual Host without www
I was able to setup apache virtual hosts and was able to access the two sites below using the full links:
www.ilovelinux.com/
www.linuxrocks.org/
I am however only able to access www.ilovelinux.com ...
1
vote
1
answer
209
views
Nginx virtual host does not work after erasing Ubuntu 16.04 LTS and installing Ubuntu 22.04 LTS
I had set up an nginx virtual host serving an angularjs SPA whose entry file is index.html on my Ubuntu 16.04 LTS pc, working just fine.
After doing a format and installing Ubuntu 22.04 LTS, (and ...
0
votes
0
answers
33
views
Ubuntu 18.04 VM unable to install on Gen 2 Hyper-V (Win 11 Host)
has anybody managed to install Ubuntu 18.04 VM on Gen 2 Hyper-V? I received this error message 1 after Ubuntu logo showed up 1. I am able to install Ubuntu 18.04 on Gen 1 Hyper-V and Ubuntu 20.04 on ...
0
votes
0
answers
18
views
Restrict 100 IPs using Virtual Host in Apache
I need to control few 100+ Ips using Apache’s Virtual Host. I have tag inside tag with below config.
<Directory “/usr/…”>
…
AllowOverride None
Require all granted
..
</Directory>...
0
votes
2
answers
135
views
Fingerprint conflict on virtual cluster server
I created three virtual machines (Ubuntu server 22.04 LTS), one for control and two nodes. Control is working fine, I can access it, however when I try to access node1 I get this error:
@@@@@@@@@@@@@@@...
0
votes
0
answers
15
views
Permissions changed after vhosts setup
I have running php project on Ubuntu 20 , After having configured for it apacher vhosts , the permisssions of the folder and its content has changed and become not writable ,
How can I prevent this ...
1
vote
0
answers
147
views
Virtual machine (running on Ubuntu Server 20.04) disk space rezise
I want to know if I create a VM from my VMWare vSphere with 500GB disk space. Then I install Ubuntu Server 20.04 on it. In future, will it impact or cause my Ubuntu fail to boot if I reduce the disk ...
0
votes
0
answers
260
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 ...
0
votes
1
answer
154
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 ....
0
votes
0
answers
42
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 ...
0
votes
0
answers
2k
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 ...
2
votes
1
answer
2k
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. ...
0
votes
0
answers
82
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 ...
0
votes
0
answers
218
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. ...
0
votes
0
answers
365
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 ...
0
votes
1
answer
344
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 ...
0
votes
1
answer
896
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>
...
0
votes
1
answer
434
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 ...
0
votes
1
answer
1k
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 ...
0
votes
1
answer
185
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....
0
votes
1
answer
3k
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 ...
0
votes
0
answers
5k
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 ...
0
votes
1
answer
119
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 ...
1
vote
0
answers
85
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 ...
2
votes
1
answer
828
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 ....
1
vote
0
answers
103
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 ...
1
vote
1
answer
293
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 ...
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....
1
vote
1
answer
449
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/...
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 ...
3
votes
3
answers
5k
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 ...
0
votes
1
answer
2k
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:
...
0
votes
1
answer
609
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/...
0
votes
0
answers
1k
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 ...
0
votes
0
answers
1k
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 ...
1
vote
1
answer
265
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 ...
0
votes
1
answer
67
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 ...
1
vote
2
answers
386
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 ...
0
votes
0
answers
86
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://...
1
vote
1
answer
3k
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 ...
1
vote
2
answers
13k
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....
0
votes
1
answer
750
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-...
0
votes
0
answers
64
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 ...
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 ...
1
vote
0
answers
204
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
...