Hot answers tagged

3

I'll try to cover second part of your question: How can I stop this? I took following part from your question: <VirtualHost *:443> ServerName myserver:443 DocumentRoot /empty/ <Directory /> Order allow,deny Deny from all </Directory> if /rest/API_CALL is the only URI that being used and because of ...


1

Currently, you have only one virtual host configured for requests to Port 443. If no virtual host exists for a specific Hostname:, Apache responds to HTTP requests with the first virtual host configured for that particular IP address / Port number combination. You need to create a virtual host configuration for the new.sample.com host name listening on Port ...


1

It all depends on what you are trying to achieve with TLS certificates. If you need authentication and encryption for the client then you will need to have a TLS certificate for static server. If the connection between static server and dynamic server is secure (such as over a private network or VPN) then you may not need HTTPS between the two, in which ...


1

You don't say what distro/release you are using which may be relevant. I only have Centos 6 and 7 to hand but the tools to use should be available on other distros. The tools you should familiarise yourself with are audit2why and audit2allow. Running your denial messages through the tools will point you in the right direction. On the CentOS 6 sytem I ...


1

No, it's not possible via configuration. I'd recommend just having a counter in your program counting the number of requests it has made, and subtract this from the total. You can see the documentation for mod_status here; https://httpd.apache.org/docs/current/mod/mod_status.html As you can see, the only extra option you have is turning ExtendedStatus on. ...


1

I am not familiar with Cent OS default directory structure, but you will want to follow something like this: <Directory /> Require all denied AllowOverride None Options None </Directory> <Directory /PATH ON SERVER TO YOUR DOCUMENT ROOT> Require all granted AllowOverride All Options FollowSymLinks </Directory> ...


1

You have to remove the index.html file (or rename it to something that don't end with .html or .php). You could also create a new sub directory in /var/www/html, called download (just for an example), and then browse to it with http://ip-address/download/.


1

You can add this to httpd.conf AddCharset utf8 .json



Only top voted, non community-wiki answers of a minimum length are eligible