Questions tagged [apache-virtualhost]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
79 views

Certbot gives an error for apache2

I tried to configure SSL using this guide: https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-22-04 But I get this error: serv_ivan@964889-cd87180:~$ ...
user avatar
0 votes
0 answers
15 views

How can I connect to my Apache 2 web site that sits on the Ubuntu Server through IP?

Here's my virtual host configurations: <VirtualHost *:80> ServerName abwebserver ServerAdmin <my e-mail> DocumentRoot /var/www/mediawiki AllowEncodedSlashes NoDecode ...
user avatar
0 votes
0 answers
34 views

core error - Script timed out before returning headers: wsgi.py

I'm running a Django app on Apache/2.4.6 (CentOS) with mod_wsgi. When I visit my domain, after few minutes I get "Internal Server Error". The log file shows the following error - [core:error]...
user avatar
  • 1
0 votes
2 answers
105 views

Two virtual hosts in one config file

Is it possible for me to have two virtual hosts (ports: 80 & 443) in one config file? i.e. /etc/apache2/sites-available/example.test.conf <VirtualHost *:443> ServerName example.test ...
user avatar
  • 182
0 votes
0 answers
19 views

How to route web application on some port to my subdomain

I'm hosting my domain on my apache2 server and i want to add a web interface on a subdomain. I have my website on port 80 and droppy with webinterface on port 8989. How do i route droppy interface to ...
user avatar
0 votes
0 answers
129 views

apache2: "AH01630: client denied by server configuration: ..." for ScriptAlias

(Maybe similar to WSGI application, "AH01630: client denied by server configuration" but client receives page anyway) I'm running some CGI for years, and it works as intended, but the Apache ...
user avatar
  • 816
0 votes
1 answer
121 views

Apache Web Server port 433 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 ...
user avatar
0 votes
0 answers
55 views

apache2: where is the default virtual host config?

I am install apache2 on Ubuntu 18.04 using following command: apt install apache2 Then I am edit the file /etc/apache2/ports.conf to listen port 8090: # If you just change the port or add more ports ...
user avatar
  • 223
0 votes
0 answers
201 views

Problems with flask app with apache server

Just created a simple flask app that returns the string "hello world", it works and does what expected, If I use my http://localhost/ with the apache server enabled I will get the "...
user avatar
  • 1
1 vote
1 answer
52 views

.htaccess being ignored by Apache

It seems that the .htaccess file for one of my virtual hosts is being ignored on my production server. The file is identical to working .htaccess files for other vhosts on the same server. Also, the ...
user avatar
  • 131
0 votes
0 answers
101 views

Why does Apache's mod-rewrite module process some GET requests and not process others?

I am trying to get mod_rewrite working. I'm experimenting with a very simple rule: RewriteEngine On RewriteRule ^/one /var/www/html/oldindex.html Here is the complete config file: /etc/apache2/sites-...
user avatar
0 votes
0 answers
226 views

In Apache config all my attempts to redirect all requests to index.html fail

I have an Angular SPA that should only request index.html. All other URL requests to this server are handled internally by the SPA. I want to redirect all 404 errs to index.html. [UPDATE: This post ...
user avatar
0 votes
0 answers
121 views

Activating php-fpm on apache2 Ubuntu 20

I've recently installed FPM on our server but for some reason cant get it to activate on the server API. When I check the status of php7.4-fpm it is active and running. I followed the notice ...
user avatar
  • 103
1 vote
1 answer
28 views

Apache virtualhost configuration issue

I'm developing a symfony application and in trying to remove index.php from the url, I used the following virtualhost configuration: <VirtualHost *:80> ServerAdmin webmaster@localhost ...
user avatar
  • 331
-1 votes
1 answer
201 views

HTTPD: What's Missing?

I am unable to get webpages past the default Apache Welcome screen. I am trying to get www.mybestfriendsarecats.com to publish. httpd -S provided error information in /etc/httpd/conf.d/mod_security, ...
user avatar
2 votes
1 answer
210 views

Debian 10 apache2 virtual hosts for subdomain

I have Debian 10 and apache2 and in virtual hosts configuration for subdomain. Configuration for main domain: <VirtualHost *:80> ServerName system.com ServerAlias system.com ...
user avatar
  • 23
0 votes
1 answer
437 views

Apache HTTPD does not list all files in directory

Server version: Apache/2.4.6 (CentOS) Server built: Nov 16 2020 16:18:20 When I go to browser and type IP/result I do not see all the files in directory. Alias /result "/var/geojson" <...
user avatar
0 votes
1 answer
94 views

Apache HTTPD allow access for multiple users from their respective IPs

Directory on the server needs to be accessed by multiple users and each user can have access only if they are accessing from specific IP with their credentials. I only find syntax how to describe this ...
user avatar
0 votes
0 answers
46 views

disable apache " virtual host-ssl " When a problem appears in Apache

I need a script to check apache and when this line shows "problem" in status apache : AH00526: syntax error on line 34 of /etc/apache2/sites-enabled/store_mohamedkhaledgroup-le- ssl.com I ...
user avatar
  • 1
0 votes
0 answers
40 views

How to reverse proxy call in apache

I have a reverse proxy setup as follows in Apache: Server A with address www.proxyserver.com/graphql is the reverse proxy server. (magento - php) It maps to: Server B with address example.com (reactjs)...
user avatar
0 votes
0 answers
56 views

Ubuntu/Apache/Flask - sub-subdomain?

On a fresh install of Ubuntu 20.04, I’ve set up the new server with apache -> MOD WSGI. The configuration of apache recommends that I create subdomains. How will that interact with the fact that ...
user avatar
  • 627
1 vote
2 answers
351 views

How does Apache webserver is able to detect CNAME

I was quite curious how does Apache web server can detect a subdomain even when all the subdomains point to same IP address, since my understanding is that an IP address that cannot have a subdomain, ...
user avatar
0 votes
2 answers
44 views

http to https redirection preventing redirections to other domains

I have following vhost redirecting 80 to 443: <VirtualHost *:80> ServerName site.mydomain.com ServerAlias www.site.mydomain.com DocumentRoot /srv/htdocs Redirect ...
user avatar
  • 2,677
1 vote
1 answer
159 views

How do I serve *nothing* on a server's bare IP with Apache2 virtual hosts?

I am hosting several project sites on a machine running Apache. Of course I am using virtual hosts and they work as expected. However, currently accessing the bare IP of the machine yields the first ...
user avatar
0 votes
1 answer
51 views

Can Access LAMP over LAN, CANNOT Access Sites

I can view a directory of my LAMP server running on Ubuntu 20.04 over my LAN using my mobile phone's web browser, when I type http://192.168.X.XXX. However, I can not access any of the sites/...
user avatar
0 votes
2 answers
37 views

Apache vhost local request

I got 2 sites configured via apache vhost like: <VirtualHost *:443> DocumentRoot /var/www/site1 ServerName www.site1.com ... <VirtualHost *:443> DocumentRoot /var/www/...
user avatar
  • 195
0 votes
0 answers
20 views

Home Server Stopped Routing to IP

I have set up an apache server on Debian. I have www.mydomain.com pointing to my home IP for my subdomains. unraid.mydomain.com. This has been working up until about a week ago. Now when I am ...
user avatar
0 votes
1 answer
61 views

Possible running Apache and Nginx independently on same server

Possible running Apache and Nginx VirtualHosts independently on same server. I know they must listen on different ports BUT is it possible to say let Apache independently handle 3 websites while the ...
user avatar
  • 1
0 votes
1 answer
293 views

Access to webserver behind nginx reverse-proxy from outside fails with SSL handshaking error

I have a setup where there are a number of Apache web servers behind a common Nginx reverse proxy server. But I can not access the web servers from the Internet. The access works fine on my local ...
user avatar
0 votes
2 answers
58 views

Apache redirection http to https

i try to activate redirection for a website, http to https. Content of an .htacces founded RewriteRule ^index\.html$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d ...
user avatar
  • 57
2 votes
1 answer
2k views

Apache + php-fpm: Proper permissions for per-pool, per-user projects?

What is the correct way to set up Apache virtualhosts and PHP-FPM pools with different users, one user per project, so that each user/project is independent from each other in file access projects ...
user avatar
0 votes
1 answer
24 views

why does proxy reverse included to a single virtualhost configuration via post virtualhost include affect other virtual hosts on same vps

I have created a virtualhost configuration file in the specified directory /etc/apache2/conf.d/userdata/std/2_4/username/sub.domain.com/file.conf (in this example for sub.domain.com.) I have also ...
user avatar
0 votes
1 answer
25 views

transfer .htaccess rewrite to apache vhost configuration

I am using a script that is called every time a special keyword combination is in query string - on all of my domains that are located on my server. I am using .htaccess files on every domain that ...
user avatar
  • 1
0 votes
1 answer
10 views

Virtual includes with XAMPP

I am running Ubuntu 18.04 with XAMPP 7.3.7.1 for Linux. I have one acct. that uses HTML and so I use <!--#include virtual="/includes/css.html" --> for my includes. The problem is when ...
user avatar
  • 189
1 vote
1 answer
888 views

certbot does not recognize the added VirtualHost

I'm trying to use certbot to get a certificate for my http server running nextcloud (archarm on a raspi). When I run: $ sudo certbot --apache, I get: $ sudo certbot --apache Saving debug log to /...
user avatar
  • 205
0 votes
1 answer
192 views

Can't access subdomains on apache

My objective is to create 2 sites site1.example.com and site2.example.com in two VirtualHosts and use /etc/hosts for resolving.The problem is that I can access the main domain example.com but none of ...
user avatar
  • 190
1 vote
1 answer
105 views

Can I group load-balanced apache http logs on a rsyslog log server by VirtualHost?

I have an array of load balanced app servers (app1-app4) for multiple websites logging to a single log server (log1). I would like the logs on the log server to be grouped by virtualhost so I can see ...
user avatar
  • 217
-1 votes
1 answer
641 views

Problem with running multiple Websites on Ubuntu Server 18.04 LTS with Apache

I am new to Linux networking. I set up an Ubuntu Server and I use my laptop as a client via SSH. I am trying to host 2 websites on the server but when I test the web pages on my Laptop, they will ...
user avatar
1 vote
0 answers
299 views

Apache fails to load when SSL activated through Pacemaker

I have setup a cluster on Pacemaker holding: apache, mariadb, 2x GFS2, and a VIP Everything was working fine when running on http but as soon as I added the (self-signed) SSL certificate and the ...
user avatar
  • 113
2 votes
2 answers
323 views

Different virtual hosts (Apache) for different subdirectories?

I want to host a webpage for 150 users. Each user will have a unique webpage by the url url/username/index.html. Here username is unique for all users rest all remains common. So do I need to make ...
user avatar
0 votes
0 answers
787 views

Apache stopped working after update - requests just timeout now - problem with firewalld

UPDATE: I tried rolling back the yum update and it did not resolve the problem. I also tried running the server with only a single virtual host and no SSL and then trying to access site via http. I ...
user avatar
1 vote
1 answer
80 views

Examples of virtual hosts in the Apache manuals

I'm preparing my self for a Linux exam, and I keep forgetting the format of an apache virtual host. At the exam, I am allowed to use the man pages and any documentation from the server, but I'm not ...
user avatar
  • 13
0 votes
1 answer
20 views

I need to have a subnets on my domain route to 3 different vms im running on my network

Let me start by mentioning that I'm a programmer that has been learning the magical world of networking. I'm not going to begin to believe that all if any of my design decisions have been entirely ...
user avatar
1 vote
0 answers
350 views

Apache vhost_alias - how to set user per virtualhost?

For context: I'm using a Debian or Ubuntu server with Apache 2.4, PHP 7.2 and a number of other things, to set up a development and testing environment for devs and technicians to use at work. I've ...
user avatar
1 vote
0 answers
138 views

CentOS subdomain not working

I'm trying to create a subdomain in my CentOS server but it's redirecting to the main domain name Here is my virtual host NameVirtualHost *:80 <VirtualHost *:80> ServerName www.domain.co.uk ...
user avatar
0 votes
1 answer
624 views

Apache proxy reverse to webmin (CentOS 7)

I have a CentOS7 virtualized in my testing homelab. I installed webmin along with Apache webserver and I can reach the webmin login page through the CentOS machine IP address on port 10000 (https). ...
user avatar
-1 votes
1 answer
23 views

I broke access logging for Apache Virtual Host. So weird - help

I had an access log that I wanted to save and then clear the original one. I renamed the access.log and then created a new access.log with the same permissions. No logging. I restarted Apache2 a ...
user avatar
0 votes
1 answer
100 views

No multiple *.onion domain possible

I have some problems with adding a second *.onion address. I added following: HiddenServiceDir /var/lib/tor/hidden_service/ HiddenServicePort 80 127.0.0.1:80 HiddenServiceDir /var/lib/tor/...
user avatar
  • 1
0 votes
1 answer
47 views

Apache: 2 SSL certificates, same DocumentRoot

I have my site configured on apache and now I'm trying to set up re-directions correctly. My site uses wildcard SSL certification and my ssl certificate covers *.mydomain.com. My certificate provider ...
user avatar
1 vote
2 answers
203 views

Avoid Public IP based browsing of website in Apache 2.4

We are hosting a website locally. For this purpose, we have a public IP and corresponding DNS entry. We are using Apache 2.4 web-server. The website is publicly accessible without any problem. But ...
user avatar