Many novices think that SEO is just about posting external links and writing articles and never analyze website logs. In fact, we can get a lot of SEO information from website logs, so how to check website logs?
1. View the virtual host
The logs of the virtual host (space) are generally placed in the root directory of the website, similar to og Or the logfile folder (different service providers have different names), and then open it. The suffix of the log file is .log.
2. Server (iis)
Generally speaking, the server logs installed with iis are placed in C:\WINDOWS\system32\LogFiles\ by default. Different machines It may be different, but the website log file format is still log.
3.apache
By default, logs are not generated. We can generate website logs by modifying the httpd or httpd_vhost files. Of course, the path to generate website logs can also be used. Set it yourself.
The points mentioned above are the locations of logs under normal circumstances. As for how to view the specific location of website logs, it depends on the specific situation!
The above is the detailed content of How to view website logs. For more information, please follow other related articles on the PHP Chinese website!