The invention provides a method and device for configuring a web request. The method comprises the steps: acquiring the web request, recognizing whether the web request uses a default protocol or not,if not, configuring the current request according to a set format, and during 
system compiling and packaging, reading a configuration file, and writting read data into a given 
directory of a corresponding project; installing and deploying the 
system to a 
server, and starting 
web container service; when looging in a web terminal, searching for a configuration file under a given 
directory of a project, reading the file, initializing file data into a memory, and defining a 
hash table for storage; and monitoring a web request initiated by a 
client, determining a protocol type, and forwarding therequest according to the protocol type. Only one 
system code needs to be maintained, the customization requirements of different clients are met, the number of code branches and the development costof company maintenance personnel are reduced, in the development process, the rapid 
adaptation process can be completed according to the requirements of manufacturers, and the working efficiency is improved.