Hi,
I am a complete noob with OLS and I've facing some challenges.
OLS is currently hosted on an EC2, also Wordpress has been installed.
I would like to implement AWS Elastic Load Balancer in front of the webserver.
I've checked /usr/local/lsws/conf/httpd_config.conf to see which virtualHosts there are and where the vhRoot is.
path: /home/<placeholder>/wordpress/<placeholder>
In /home/<placeholder>/wordpress/<placeholder>/.htaccess, i've changed rewrite part:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/healthcheck\.php$
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
In /home/<placeholder>/wordpress/<placeholder>, I've created a simple healthcheck.php.
When I do a `curl localhost/healthcheck.php`, I receive a 404 not found.
Does someone have tips or ideas?
I am a complete noob with OLS and I've facing some challenges.
OLS is currently hosted on an EC2, also Wordpress has been installed.
I would like to implement AWS Elastic Load Balancer in front of the webserver.
I've checked /usr/local/lsws/conf/httpd_config.conf to see which virtualHosts there are and where the vhRoot is.
path: /home/<placeholder>/wordpress/<placeholder>
In /home/<placeholder>/wordpress/<placeholder>/.htaccess, i've changed rewrite part:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/healthcheck\.php$
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
In /home/<placeholder>/wordpress/<placeholder>, I've created a simple healthcheck.php.
When I do a `curl localhost/healthcheck.php`, I receive a 404 not found.
Does someone have tips or ideas?