In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Continue with the last lesson:
Cd / etc/httpd/conf/
Vim httpd.conf Editing profile
Section 2: the Main Server configuration segment provides only web servers but not virtual hosts
1. ServerAdmin root@localhost server service administrator
2. ServerName www.example.com:80 is necessary in the virtual host.
3. UseCanonicaName off is of little significance.
4. DocumentRoot "/ var/www/html" web page document storage directory, which can be modified
5 、 Options:
None does not support any of the options
Indexs allows indexing of directories; this is not a good thing, others can easily take your source code away, the URL path and the local system path are not the same thing
6. Index details; FollowSymLinks: whether to allow access to symbolic links; directly change it to none
7. Includes: server-side inclusion (SSI) is allowed, which is not safe. Do not allow support.
8. ExecCGI: allow CGI scripts to be run
9. There is no need for MultiViews to display
10. All: all options are supported. No one plays like this.
11. Order: used to define host-based access capabilities. IP network address or host-defined access control mechanism
Example: only 192.168.0.0 is allowed to access the network.
Order allow,deny
Allow from 192.168.0.0/24
Example: network access of 192.168.0.0 is not allowed
Order deny,allow
Deny from 192.168.0.0/24
Execute httpd-t to determine whether there is a syntax error and then restart
Address representation:
IP
Network/netmask
HOSTNAME:www.a.com
DOMAINNAME:mageedu.com
Partial IP:172.16;; represents 172.16.0.
12. Elinks: a tool for browsing the web in a plain text interface
Elinks http://192.168.9.247 accesses the page locally
-dump exits directly after displaying the web page
-source displays the source code of html
13. AllowOverride AuthConfig can only be accessed after authentication based on user name and password
AuthType Basic
AuthName "Restricted Side.."
AuthUserFile "/ etc/httpd/conf/htpasswd"; or specify a group file: AuthGroupFile
Required valid-usr allows all users in the above file to log in; Require user hadoop only allows hadoop access
14. Edit the files in 13
Htpasswd-c-m / etc/httpd/conf/htpasswd hadoop add hadoop user
Htpasswd-m / etc/httpd/conf/htpasswd tom to add a second user to remove-c
-D can delete users
16. Httpd-l to view the installed modules
Httpd-M view all modules
Can you create a personal page and add your own name to the URL to see your own page?
Comment it, delete the following public_html comment, and create a publi_html in your own directory.
Create tom; su-tom;mkdir public_html; vim index.html...
Chmod overnx / home/hadoop/
17. / var/logs/error_log defines error log
19. / var/log/httpd/access_log correct log
18. LogFormat log format
20. The number of visits to PV:Page View pages is counted by day.
Independent IP visits per day for UV:User View
15. Alias path alias
Http:/192.168.9.247/bbs/p_w_picpaths.logo.jpeg
/ www/forum We define this path as bbs
Vim / etc/httpd/conf/httpd.conf
Alias / luntan "/ bbs/forum" means to let luntan replace this path.
Summary:
Define the site document directory
Access options: options
Host-based access control
User or group based access control
User personal site
Error log
Access log pv uv
Path alias
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.