Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build dynamic WEB server configuration with linux

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "linux how to build dynamic WEB server configuration". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "linux how to build dynamic WEB server configuration".

Apache profile

Important configuration option

The root directory where the ServerRoot server is running

Number of clients that MaxClients can access the server at the same time

Start location of files shared by DocumentRoot server

The port on which the listen server listens

ServerAdmin administrator's mailbox

Identity of the User&Group server operator

ErrorLog error log file

DirectoryIndex default folder index file

AddDefaultCharset returns the encoding of the page by default

Alias sets access aliases for directories

View the Apache internal default module / usr/local/apache2/bin/httpd-l

Directory control statement

# default root directory

Options Indexes Follow Symlink # can use index files

AllowOverride None # cannot be overwritten

There is no permission statement above, and all upward access cannot be executed.

Options Follow Symlink

AllowOverride None # cannot be overwritten

Order allow.deny

Allow from all # can be accessed from any address, Allow,Deny

Test CGI

Profile option

ScriptAlias / cgi-bin "/ usr/local/apache2/cgi-bin/"

Write cgi files

/ usr/local/apache2/cgi-bin/

Confirm that the cgi program can be executed by apache users

# chgrp apache / usr/local/apache2/cgi-bin/

# chmod 750 / user/local/apache2/cgi-bin/

Test the execution effect of cgi program

# links http://localhost/cgi-bin/

Activate the SSL module

Create a private key and certificate file

# cd / etc; mkdir ssl.crt server.key

# openssl genrsa-out / etc/ssl.key/server.key 1024

# openssl req-new-x509-key\

/ etc/ssl.key/server.key-out / etc/ssl.crt/server.crt

Edit / etc/ssl.conf

Restart the web server

# / usr/local/apache2/bin/apachectl stop

# / usr/local/apache2/bin/apachectl startssl

(modify the corresponding command in the startup script / etc/rc.local)

Thank you for reading, the above is the content of "how to build dynamic WEB server configuration for linux". After the study of this article, I believe you have a deeper understanding of how to build dynamic WEB server configuration for linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report