Often needed when you are troubleshooting the issue and wish to capture more details. Mod_was_ap22_http.so must be added in nf file to integrate with IBM WAS. What module is needed to connect to WebSphere? # You can either create IP based or Name based on virtual hosting. Virtual Hosting in Apache allows you to host multiple websites on a single instance. You can either use the following OpenSSL command or generate CSR online.Ĭheck out the OpenSSL cheat sheet for more commands. What are the log files generated by Apache? #Īccess.log – all request details with the status code error.log – capture all the errors within apache or connecting to the backend 14. Implementing SSL Integrating with WAF (Web Application Firewall) like ModSecurity, etc. There are multiple ways to secure the Apache webserver including the following. How to secure a Website hosted on Apache Web Server? # Yes, it’s possible by specifying the port number in the Listen directive.Įx: to make Apache listen on 9000 port to 10.10.10.10 IP address. Can you change the listening port from default to something else? # Mod_rewrite is responsible for the redirection, and this must be uncommented in nf file. Which module is required to have redirection possible? # You can use “Options -Indexes” in the respective directory directive.Įx: 10. You must ensure users exist on the server before configuring it. The above configuration example will ensure it starts with “apache” user. This is doable by adding User & Group directive in nf file How to ensure the Apache run with non-root/nobody user? # To ensure Apache listens only on specified IP then you need to explicitly mention IP and port in Listen directive.Įx: 8. This is often needed when you have multiple IPs on the server. How to ensure Apache listens to only one IP address on the server? # RPM – You can download the necessary RPM package and use the rpm command. YUM repository – if your server is connected to the Internet or has an internal repository then you can use yum to install it. If you want to find out more options on how to configure it, you can make use of the configure –help command. Finally, use the make install command to install it. configure command on the terminal Then compile it using the make command. Navigate to where you extracted the source via the cd command and configure it using the. Using source code – you can download the source and compile it.ĭownload the latest release from Extract the source with tar utility or gzip utility depending on the file type. There are three possible ways to get this installed. How to know if a web server is running? # Login to a web server Go to apache instance and bin folder Executed httpd with -v to get the version details.Īlternatively, you can also use the rpm command to check the installed version. There are multiple ways to find this but more accurately would be How to check the version of running Apache Web Server? # nf is the main configuration file used in Apache. Can you tell me the important configuration file name? # Checkout default ports for other applications listed here. The default port for HTTP is 80 and HTTPS 443. What is the default port for HTTP and HTTPS? # Mostly it will be named either “apache” or “httpd”Īnother procedure would be using services 2. You may also use a script located in /etc/init.d/. You can restart by going to Apache instance location » bin folder and execute apachectl script. Let’s get started with real-time interview questions & answers… 1. Most of the organization will have Web Server managed by Middleware/System administrator along with Application Server and other components. The following questions are often asked in an interview from beginner to expert level. A few days back, I wrote about WebSphere Interview Questions, and many of you requested to write about Apache Web Server so here you go.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |