Questions tagged [apache-virtualhost]

The tag has no usage guidance.

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

apache2 virtualhost config ip resolving DNS etc/hosts

I am setting up my first apache2 server in a VM based on Ubuntu server. This is my hello.bla.la.conf: <VirtualHost *:80> ServerName hello.bla.la DocumentRoot /var/www/html/public_html ...
0
votes
0answers
25 views

Setting multiple subdomains to work over HTTPS on Apache

I would like to have 2 subdomains, where one subdomain would be for connecting to Docker registry on that domain and one subdomain for application that will be runned on that Docker registry. What I ...
1
vote
0answers
22 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 ...
0
votes
1answer
32 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). ...
-1
votes
1answer
16 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 ...
0
votes
1answer
57 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/...
0
votes
1answer
35 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 ...
0
votes
0answers
14 views

Two Virtaulhost with one IP in Apache2 is not working with Haproxy

For my case, haproxy is at front-end where ssl terminates ( in actual system) and requests are served via back end. In backend, there are two virtual hosts. My requirement is that if client type IP in ...
1
vote
2answers
45 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 ...
0
votes
1answer
45 views

Apache 2 Virtual Host allow serving all files from a directory

I have an Apache 2 server installed on my Debian system. The Apache listens on port 80. Then I have a simple nodeJS server listening on port 8080. I want to use the Apache as proxy for the nodeJS ...
0
votes
0answers
38 views

Which server name should one use for ServerName apache config?

Which server name should i use for ServerName apache config if i am hosting multiple subdomains on the same host. Trying to get rid of this warning in the /var/log/apache/error.log file AH00558: ...
1
vote
1answer
834 views

Apache/2.4.18 (Ubuntu) Server is not working with RewriteEngine mode by .htaccess for specific folder

While I am working with Web API project with Slim, I was using .htaccess for API folder /v1 under root web. My OS is Ubuntu 16.04, with Apache/2.4.18. I wanted to apply the .htaccess only for the /v1 ...
0
votes
0answers
19 views

Second Domain in multi Virtual Host Configuration not working

I am running a DigitalOcean VPS with Debian 10, Apache 2.4.38, PHP 7.3.4-2 and MariaDB 10.3.15. Port 22, 80, 443 and 3306 are open. I want to run two websites on this server using virtual host ...
1
vote
2answers
23 views

Apache2 and domain control

I have a question. If I make an A record pointing to an Apache2 server, and make some virtualhosts with subdomains. Can I then access the subdomain without making another record?
0
votes
1answer
393 views

CentOS 7 Linking sites in Apache conf folders without using a2ensite and a2dissiste

I'm following this guide to create virtualhosts in my server, but my apache is running on CentOS 7, and I do not have the a2ensite command required at point 5. What's the equivalent centos command ...
1
vote
2answers
576 views

Apache 2.4 with self-signed certificates always redirect to the default virtual host

I've been trying to make work virtual hosts with self-signed certificates with Apache 2.4. I've tried many setup combinations but no matter what, every virtual host I try in Firefox goes straight to ...
0
votes
1answer
41 views

How to host webserver with domain name? [closed]

I bought a domain with Namecheap and want to host the server by myself but with the domain name. How do I do this? Whenever I search on Google I only get useless results telling me things I don't ...
0
votes
0answers
390 views

Job for apache2.service failed because the control process exited with error code. See “systemctl status apache2.service”

I am trying to install Devstack but it stopping in the middle Currently trying to install openstack, but the long process of individual installation, so am using devstack, however i already install ...
0
votes
0answers
62 views

httpd virtual host to proxy requests to FTP on another host

I have a host for which I have its public IP address. I'd like to use this public IP to redirect the FTP access to an FTP running on another host. Example: Consider the host for which I have the ...
0
votes
1answer
81 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 ...
0
votes
1answer
201 views

Apache server giving 403 Forbidden for IPV6 addresses?

We have an Apache server running, where it serves well any IPV4 address, but all access from IPV6 is blocked with "403 Forbidden". Any possible most likely causes to that? EDIT Thanks for the ...
0
votes
2answers
45 views

403 frobidden when trying access apache / directory

I am trying to run my first PHP code on my desktop Linux. I installed httpd on my pc and changed these things: Changed document root to /home/MyUserName/httpd/www Changed default port to 8080 I ...
0
votes
0answers
49 views

Appache SSL timeout and reqtimeout module

It seems Apache SSL http2 does not honor KeepAliveTimeout Server version: Apache/2.4.29 (Ubuntu) built: 2018-10-10T18:59:25 Searching Stackoverflow, I could find the issue is with ...
0
votes
0answers
16 views

Setting up reverse proxies for websites cloned to local machine

I've mirrored a website from http://ORIGINAL.com to my local computer running Apache on port 127.0.0.1. I can pull up the site at http://CLONED.com using vhosts: <VirtualHost *:8080> ServerName ...
0
votes
0answers
251 views

Configure virtual host for custom directory

I have a web application installed in '/var' in a folder called 'myapp' in a CentOs 6 vps, and i have a sub-domain that points to the server IP, and i need that sub-domain to point to that '/var/myapp'...
0
votes
1answer
970 views

Redirect on the same port from http to https with nginx reverse proxy

I have a website setup http://mydomain.com/myroject on ubuntu 14.04(apache webserver) I setup htsql service on the same host to run on port 5000 working links: http://mydomain.com/myproject http://...
3
votes
1answer
1k views

How to configure “https” in same domain for multiple ports?

I have a website(apache web server, ubuntu 14.04) setup http://example.com and configured with ports 1996 and 1980. These links works with http http://example.com/myproject http://example.com:1996/ ...
0
votes
1answer
30 views

Adding .htaccess to Wordpress results in 500 Internal Server Error

I am moving a Wordpress site to a new dedicated host. I have managed to move the assets and import the wordpress database. I update the wp_options to the tempory domain name (until I'm ready to make ...
0
votes
1answer
18 views

Virtualhosts not resolve for Apache

I have a website in /var/www/statgenerique5. I have added the following to the /etc/apache2/sites-available/statgen5.conf <VirtualHost *:80> ServerName statgen5.local ServerAdmin webmaster@...
1
vote
1answer
71 views

redirecting traffic via .htaccess or VirtualHost .conf fails with https on centos 7 multisite server

I have a Centos 7 server configured for multisite web hosting. One of the things I'm trying to do with this server is redirect traffic to old subdomains to subdirectories on our primary website. The ...
1
vote
1answer
777 views

Apache redirect certain url or subdomain to internal ip

I have a gitlab server next to my web server running on my home network. On my web server I run Apache2 with some domains. One of them is example.com. Now my aim is that the user receives the gitlab ...
0
votes
1answer
361 views

How do I configure a Vagrant virtual machine with a host name?

I'm trying to use Vagrant to set up an Ubuntu/Apache virtual machine using Virtual Box on a Windows 10 host, and then configure my host machine so that opening the URL magento.dev in my browser pulls ...
0
votes
1answer
79 views

/etc/hosts file is cluttered with useless content, how should I properly use /etc/hosts ( apache2 )

I recently tried to add a URL in my /etc/hosts file, and because of many different attempts in the past, I realized I most probably have some extra lines in there which are not necessary. I have read ...
0
votes
1answer
1k views

How to configure the Certbot not to include options-ssl-apache.conf into my VirtualHosts?

# cat /etc/letsencrypt/options-ssl-apache.conf # Baseline setting to Include for SSL sites using Let's Encrypt certificates SSLEngine on # Intermediate configuration, tweak to your needs ...
0
votes
1answer
20 views

DNS point to internal IP

I have a DNS entry for an IP which can be accessed externally it is http://xyz.abc.com. I have set it up and it is working Now I also have a 123.abc.loc which is attached to an IP internally on 192....
0
votes
1answer
408 views

Problem with Wpad file in Mozilla Firefox

I have this wpad.pac function FindProxyForURL(url, host) { if (isPlainHostName(host) || shExpMatch(host, "*.local") || isInNet(dnsResolve(host), "192.168.0.0", "255.255.255.0") || isInNet(...
1
vote
0answers
2k views

Subdomain of localhost is not working. Apache 2.4.25 (Debian) Server at subdomain.localhost Port 80

Apache 2.4.25 (Debian) Server at Port 80: Subdomain of localhost is not working localhost is working. localhost/site1 is also working. site1.localhost is not working Changed DocumentRoot from /var/...
2
votes
3answers
1k views

Accesing localhost via IP from another device Ubuntu [closed]

I'm running localhost server on Ubuntu with xampp. I want to access that server from another device within the same network. To achieve that i'm using host IP adress from local network which is 192....
1
vote
1answer
29 views

Debian9 - Virtual Host [closed]

I must be missing something here... I've created a conf file here: /etc/apache2/sites-available/mysite.lee.conf Which contains: <VirtualHost *:80> ServerName mysite.lee ServerAdmin ...
1
vote
1answer
4k views

Allow access to Apache on both port 80 and 443 in Ubuntu 16.04

I've just installed UFW 0.35 on Ubuntu 16.04: root@localhost:/etc# ufw --version ufw 0.35 Copyright 2008-2015 Canonical Ltd. and root@localhost:/etc# ufw app list Available applications: OpenSSH ...
0
votes
1answer
256 views

Apache config files order

I have an application (OTRS) and it is using Apache 2.4 as web server. Now I can see the main configuration file httpd.conf but as well a file that was deployed with the OTRS rpm /etc/httpd/conf.d/...
1
vote
1answer
2k views

Apache SSL configuration Connection refused connect:errno=111

I am trying to configure SSL on an old opensuse server: openSUSE 11.4 (x86_64) VERSION = 11.4 CODENAME = Celadon I enabled the apache SSL module: apache2ctl -M Loaded Modules: core_module (static) ...
0
votes
0answers
47 views

Use proxy in linux server. Different result between command line and browser execution

In my web server i am trying to use proxy in all outgoing http(s) request in linux ( centos7 ). example: curl request. After set proxy by export http_proxy and https_proxy, when i run a file (php) ...
3
votes
1answer
8k views

CentOS7 Apache: RSA certificate does NOT include an ID which matches the server name

I know this issue has been raised before, and I have searched through all the answers and tried all of the suggestions, none of which solved my problem, so I'll ask for assistance in a new thread. I ...
0
votes
1answer
30 views

I have successfully install virtual host in CentOS server, then what can I do for subdomain?

I follow instructions from digitalocean And checks that works. Now what can I do to activate a subdomain. My actual domain is csedu.cf. I made /etc/httpd/sites-available/csedu.cf.conf containing ...
0
votes
1answer
191 views

Unable to restart apache

I was following digitaloceans.com guide to setup a subdomain. But now I'm having trouble restarting apache. I have the following error: Job for httpd.service failed because the control process ...
0
votes
2answers
2k views

apache error log expecting DH and EC parameters in certificate

I have been trying for 7 hours to start my Apache web server after I obtained new SSL certificates from LetsEncrypt. I have obtained an ECDSA certificate and the server still failing to start with the ...
-2
votes
1answer
118 views

can not access local HTTPS site from another PC on Ubuntu 16.4 [closed]

I was developing a PWA(Progressive Web Application) on my Ubuntu 16.4 Offline and one requirement of the framework is an HTTPS connection to be able to run. I configured my Apache server and enabled ...
0
votes
1answer
100 views

Map local IP 127.0.1.2 in different directory in Apache Server

In my localhost (Apache Server), I have two VirtualHost in port 80 pointing to different directory. Here is my two conf file: <VirtualHost *:80> ServerName localhost DocumentRoot /home/...
-1
votes
1answer
63 views

Redirect all subdomain request to my main domain ip [closed]

Is it possible to redirect all subdomain request to my main domain ip or deny all to hide my own server ip? I'm using cloudflare and it's working only on the main domain. Example: FROM ping example....