Re: [users@httpd] Multisite not working for two websites

2022-05-02 Thread Frank Gingras
Not really interested in broken/incorrect third-party tutorials. I wanted to expose the actual error you were getting for folks that read the mailing list archive. On Mon, 2 May 2022 at 19:44, Josh Mustillo wrote: > Gday, > > I don’t think there was an error on on the log, there was also no

Re: [users@httpd] Multisite not working for two websites

2022-05-02 Thread Josh Mustillo
Gday, I don’t think there was an error on on the log, there was also no error running apachectl configtest. It’s working now, I setup a new VM and followed a post on vultr, only thing I did was differently was installing as a sudo user, not root, and this command: sudo find

Re: [users@httpd] Variable of document root path based on source ip

2022-05-02 Thread Frank Gingras
The simple approach here would be to define separate IP:80 vhosts and set a separate document root in each vhost. On Mon, 2 May 2022 at 06:48, Eric Covener wrote: > You cannot use Define conditionally this way. It is parsed at startup and > ignores any enclosing directives > > On Mon, May 2,

Re: [users@httpd] Multisite not working for two websites

2022-05-02 Thread Frank Gingras
You deleted the stackoverflow post - what did the error log say, exactly? On Mon, 2 May 2022 at 06:06, Josh Mustillo wrote: > IT'S WORKING: > > Weird, fresh VM, 99% of guides are the same except the write up on vultr. > Could it have been me being lazy and running a web server as root user? The

Re: [users@httpd] Variable of document root path based on source ip

2022-05-02 Thread Eric Covener
You cannot use Define conditionally this way. It is parsed at startup and ignores any enclosing directives On Mon, May 2, 2022, 2:24 AM Ivan Ionut wrote: > I'm trying to set a virtual host on apache2 with this configuration. > > > ServerName mysite.com > ServerAlias www.mysite.com > > >

Re: [users@httpd] Multisite not working for two websites

2022-05-02 Thread Josh Mustillo
IT'S WORKING: Weird, fresh VM, 99% of guides are the same except the write up on vultr. Could it have been me being lazy and running a web server as root user? The only thing different was this command: sudo find /var/www/website1.com/public_html -type d -exec chmod g+s {} \; Guide that worked:

Re: [users@httpd] Multisite not working for two websites

2022-05-02 Thread Josh Mustillo
Hi :D, Yeah I tried directory blocks within the configs, I updated my stack post as that was a spelling error as I changed the configs for my post using generic domain instead of my actual domains XD, literally going to set up a new VM and start fresh again. There must be a bug or something with

Re: [users@httpd] Multisite not working for two websites

2022-05-02 Thread Ivan Ionut
Hi, I'm usually the guy that needs requests help :D but have you tried this directory block? Require all granted Options -Indexes P.S I noticed in your stack post that you added Directory block of website1.com within website2.com --- On 02-05-2022 09:49, Josh Mustillo wrote: Gday,

[users@httpd] Apache dropping Content-Length header for HEAD responses where Content-Length is 0

2022-05-02 Thread Piotr Dobrogost
Hi, On freshly installed Apache 2.4.52 on Fedora with default configuration I'm observing that for HEAD response the Content-Length header is not being sent for empty files (it is present for non-empty files). When changing HEAD to GET the header is present for such files. Sidney Shek asked very

[users@httpd] Multisite not working for two websites

2022-05-02 Thread Josh Mustillo
Gday, I’ll post a link to my stack overflow post as it’s nicely formatted: https://stackoverflow.com/questions/72073312/apache-virtual-hosts-not-working-for-my-two-domains I’ve been trying for a couple of weeks on a oracle compute instance with no luck so I thought I would try a Multisite on a

[users@httpd] Variable of document root path based on source ip

2022-05-02 Thread Ivan Ionut
I'm trying to set a virtual host on apache2 with this configuration. ServerName mysite.com ServerAlias www.mysite.com Define directory_path /srv/http/mysite Define directory_path /srv/http/under_construction DocumentRoot ${directory_path} Require all granted The problem is that the