access 123.php files.Domain Jump * * *Vim/usr/local/apache2.4/conf/extra/httpd-vhosts.confRewriterule ^/(.) $ http://111.com/$1 [r=301,l]$ $ represents the contents of the first parenthesis above,If you have a second parenthesis in front, you should add the followingLike whatRewriterule ^/(.) ("1-9" +) $ http://111.com/$1 $2[r=301,l]Define status code, R=301, L represents only one jump, lastr=301 means Permanentr=302 indicates temporary effect, does
MySQL cannot log on after creating a new user, prompting Access denied for user ' username ' @ ' localhost ' (using password:yes), mostly because of the presence of anonymous users, To resolve this problem, simply delete the anonymous user in the database.MySQL cannot
Tags: GES schema host host MY.CNF domain test skip HangMySQL password is correct but cannot log on locallyThe error is as follows:ERROR 1045 (28000): Access denied for user ' root ' @ ' localhost ' (using Password:yes)The test found that the user table in the MySQL library was missing a data entry with root pointing to
Use a filter based on cookies to enable the user to log on from each access.
Original statement: This article is my original work. It is not extracted from other places. For reprint, contact the blogger.
I believe you will encounter this on all major websites. When you log on, the next login-free/one-month login-free o
Apache, the browser access www.abc.com will jump directly to www.123.com.If you want to test the effect quickly, you can actually use the Curl command directly on the Linux command line.#curl-x127.0.0.1:80 Www.123.com/bbs/forum.php-Ihttp/1.1 301 Moved Permanentlyserver:nginx/1.0.15Connection:keep-aliveDate:thu, 14:12:56 GMTContent-type:text/htmlcontent-length:185location:http://www.123.com/bbs/forum.phpx-upstream-echo-time:53Three:
in httpd.conf search Logformat[[emailprotected] ~]# vim /usr/local/apache2.4/conf/httpd.confCombined and common two formats, by default using common format, referer the last visited URL. 3. The format of the change log is combined[[emailprotected] ~]# vim /usr/local/apache2.4/conf/extra/httpd-vhosts.confView Log files: Cat/usr/local/apache2.4/logs/xavi-access_logReason
profile to open it:# vim/usr/local/apache2.4/conf/httpd.confLoadModule Rewrite_module modules/mod_rewrite.soGet rid of this line of #.#/usr/local/apache2.4/bin/apachectl-tSyntax OK#/usr/local/apache2.4/bin/apachectl Graceful#/usr/local/apache2.4/bin/apachectl-m |grep RewriteRewrite_module (Shared)The module loads well and starts testing:# curl-x 127.0.0.1:80 2111.com.cn-ihttp/1.1 301 Moved Permanently status code 301Date:fri, APR 2018 12:17:18 GMTserver:apache/2.4.33 (Unix) php/7.1.6location:ht
, delete rewrite_module (shared) in front of the #2. TestCurl-x127.0.0.1:80-i 123.com-i//Status code is 301Third, Apache access log1. Access logging records every request from a user2. Define the format for the logvim/usr/local/apache/conf/httpd.conf//Search for Logformat, it gives you two formats:Logformat "%h%l%u%t \"%r\ "%>s%b \"%{referer}i\ "\"%{user-agent}i\
Rewrite_module (shared) #
Reload config-T, graceful
Curl-x127.0.0.1:80-i 123.com//Status code is 301 permanent jump, 302 temporary jump, 401 need to verify, 404 page does not exist, 403 is not authorized, Apache access log records every request of the user
vim/usr/local/apache2.4/conf/httpd.conf//Search LogformatLogFormat "%h %l %u %t \"%r\" %>s %b \"%{Ref
to see if the rewrite module is loaded before testingNo loading is going to be loaded under Config fileVim/usr/local/apache2.4/conf/httpd.confEnter/rewite search to remove the # numberCheck the configuration file and reload, check if the rewrite module is loaded, and now load the-I is not displaying content, only show status codeThe following instructions jump to a successfulStatus Code display error 403, granted in config file changed to deniedVim/usr/local/apache2.4/conf/httpd.conf11.21 Apach
! ~~~~~~But there is a small problem, that is, the login domain will be displayed in the creation of a domain list, of course, you can press Ctrl+alt+del cancel (or ESC), and then directly login, fallback domain and add domain, OK, in fact, this problem online there are many statements: what the default share is not open, the guest user is not enabled or something, Of course there is a possibility that the client did not hit the patch!This article is
there is noThird, Apache access logAccess log records every request from a uservim/usr/local/apache2.4/conf/httpd.conf//Search LogformatLogformat "%h%l%u%t \"%r\ "%>s%b \"%{referer}i\ "\"%{user-agent}i\ "" combinedLogformat "%h%l%u%t \"%r\ "%>s%b" commonView logs for 111.comCat/usr/local/apache2.4/logs/111.com-access_logChange the virtual host configuration file
User authentication for Apachevim/usr/local/apache2.4/conf/extra/httpd-vhosts.conf//The 111.com virtual host is edited into the following contentDocumentRoot "/data/wwwroot/111.com"ServerName 111.comServeralias www.example.comAllowOverride authconfigAuthName "111.com User auth"AuthType Basicauthuserfile/data/.htpasswdRequire Valid-userErrorlog "Logs/111.com-error_log"Customlog "Logs/111.com-access_log" comm
11.18 Apache user authentication11.19/11.20 Domain Jumphttpd.conf, delete the # in front of Rewrite_module (shared)Curl-x127.0.0.1:80-i 123.com//Status Code 30111.21 Apache Access LogChange the virtual host configuration file to the following:DocumentRoot "/data/wwwroot/lgx168.com"ServerName lgx168.comServeralias www.lgx168.comCustomlog "Logs/lgx168.com-access_log" combinedReload the configuration file-t,gr
, hostname (domain name) is not www.123.com meet conditionRewriterule ^/(. *) $ http://www.123.com/$1 [r=301,l]//define rewrite rules that are not executed until the above conditions are met/usr/local/apache2/bin/apachectl-m|grep-i rewrite//Without this module, you need to edit the configuration file httpd.conf, delete the front of the Rewrite_module (shared) #Curl-x127.0.0.1:80-i 123.com//Status Code 30111.21 Configuring access LogsAccess
Problem:The RABBITMQ (3.3.4 version) service was installed yesterday, and the Rabbitmq_management plugin was enabled to manage the RABBITMQ service, but a login failed error occurred while using the Guest user login in the Access management interface.The query log to the server indicates that an error occurred because: HTTP a
In some cases, you can use is_authenticated_fully as long as the user is logged in to access certain resources without requiring specific user permissions, as shown in the following configuration:This allows all URLs except/admin.jsp to be accessed as long as the user is logged in.Spring security Determines whether a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.