April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Categories

April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

disable default webpage

Once it is done, you shall disable Apache’s default welcome page.

[root@rmohan.com ~]# sed -i ‘s/^/#&/g’ /etc/httpd/conf.d/welcome.conf

Also, prevent the Apache web server from displaying files within the web directory.

[root@rmohan.com ~]# sed -i “s/Options Indexes FollowSymLinks/Options FollowSymLinks/” /etc/httpd/conf/httpd.conf

After that, start and enable the Apache web server.

[root@rmohan.com ~]# systemctl start httpd.service [root@rmohan.com ~]# […]

Reverse Proxy for Node.js application using Apache

Node.js

Node.js is widely used to build web applications with real-time, two-way connections, where both the client and server can initiate communication, allowing them to exchange data freely. The best side is that we don’t need a host container for building a web app just means including a library that listens for HTTP requests on […]

mod_proxy apache 2.4

Using Apache with mod_proxy Related content Using Apache with virtual hosts and mod_proxy Using Apache with mod_jk Installing Confluence on Windows from Zip File Installing Confluence on Linux from Archive File Running Confluence behind Apache Still need help?

The Atlassian Community is here for you.

Ask the community

This page describes how to integrate Confluence […]

504 Gateway apache tomcat issue

The servlet was taking a long time to compress the log files, and Apache‘s timeout was set to 2min.

The error was fixed by increasing the TimeOut Directive on the httpd.conf file:

# # Timeout: The number of seconds before receives and sends time out. # ##Timeout 120 Timeout 600 […]

Enable Event MPM in Apache 2.4 on CentOS/RHEL 7

Apache apache, Event, Modules, MPM 2 Comments

Apache MPM (Multi-Processing Modules) are Apache modules for creating child processes in Apache. There are many Apache MPM available, Each of them works in his own way. If you are using default Apache installation, Apache will use Prefork MPM by default.

Event MPM is launched with […]

Open Web Application Security Project

In today’s article we will guide you through the process of installing mod_security with the OWASP (Open Web Application Security Project) core rule set on a CentOS 7 from source.

ModSecurity is a web application firewall engine that provides very little protection on its own. In order to become useful, ModSecurity must be configured with […]

MOD_REWRITING AN ENTIRE SITE

Using mod_rewrite to redirect all pages to one central PHP page’.

On my site, I decided to use an all-index structure, as that’s how I prefer to do things – it means that the scripting language is more hidden from the end user than if you linked to pages such as “something-bizarre.jsp” and means that […]

USING VLOGGER TO SPLIT APACHE LOGS

Vlogger is a program that handles large amounts of virtualhost logs and splits it to separate files. This is a short HOWTO to configure it using Apache.

Install vlogger in debian etch # aptitude install vlogger Make sure you have working Apache server

Configuring vlogger Change the LogFormat line (there are multiple LogFormat lines – […]

SHORTENING APACHE CONFIGS USING MOD_MACRO

It is possible to use macros in the Apache config files to shorten them and make them easier to read and manage. To use this you have to install mod_macro if it’s not already installed in your distribution.

Sample mod_macro usage

ServerName $domain ServerAlias www.$domain DocumentRoot /vaw/www/$customer/htdocs/$domain/ ScriptAlias /cgi-bin/ /var/www/$customer/cgi-bin/ ErrorLog /var/log/apache/$customer/logs/$domain-error.log CustomLog /var/log/apache/$customer/logs/$domain-access.log […]

MOD_REWRITE, A BEGINNERS GUIDE

mod_rewrite is used for rewriting a URL at the server level, giving the user output for that final page. So, for example, a user may ask for http://www.somesite.com/widgets/blue/, but will really be given http://www.somesite.com/widgets.php?colour=blue by the server.

You can use mod_rewrite to redirect all pages to one central PHP page, which then loads the data […]