There are questions remain, We'll search for the answers together. But one thing we known for sure,the future is not set!

【mark】报414错误“Request-URI Too Large”的解决办法

ecshop 百蔬君 22833℃ 已收录 3评论

今天在后台编辑资料的时候发现报414错误

好好看了一下,发现这个get的url超长

get_ajax_content.php?is_ajax=1&act=getFCKeditor&content=%3Ch3%20style%3D%22text-align%3A%20left%3B%22%3E%E3%80%90%E7%89%B9%E5%BE%81%E7%89%B9%E6%80%A7%E3%80%91%3C%2Fh3%3E%3Cp%20style%3D%22text-align%3A%20left%3B%22%3E%26nbsp%3B%E8%AF%A5%E5%93%81%E7%A7%8D%E6%98%AF%E5%B9%BF%E4%B8%9C%E7%9C%81%E5%86%9C%E7%A7%91%E9%99%A2%E8%94%AC%E8%8F%9C%E7%A0%94%E7%A9%B6%E6%89%80%E6%9C%80%E6%96%B0%E8%82%B2%E6%88%90%E7%9A%84%E5%8D%97%E7%93%9C%E5%93%81%E7%A7%8D%E3%80%82%E6%97%A9%E4%B8%AD%E7%86%9F%EF%BC%8C%E6%A4%8D%E6%A0%AA%E8%94%93%E7%94%9F%EF%BC%8C%E5%85%A8%E7%BC%98%E6%8E%8C%E7%8A%B6%E5%8F%B6%EF%BC%8C%E5%8F%B6%E8%89%B2%E6%B7%B1%E7%BB%BF%EF%BC%8C%E7%94%9F%E9%95%BF%E6%97%BA%E7%9B%9B%EF%BC%8C%E8%8A%B1%E6%9C%9F%E9%9B%86%E4%B8%AD%EF%BC%8C%E5%9D%90%E6%9E%9C%E6%80%A7%E5%A5%BD%E3%80%82%E6%9E%9C%E5%AE%9E%E9%95%BF%E6%8A%8A%E6%A2%A8%E5%BD%A2%EF%BC%8C%E7%93%9C%E5%BD%A2%E7%BE%8E%E8%A7%82%EF%BC%8C%E6%88%90%E7%86%9F%E6%97%B6%E7%9A%AE%E8%89%B2%E5%9C%9F%E9%BB%84%EF%BC%8C%E5%8D%95%E7%93%9C%E9%87%8D2.5-4.5%E5%85%AC%E6%96%A4%EF%BC%8C%E4%BA%A7%E9%87%8F%E9%AB%98%E3%80%82%E8%82%89%E5%8E%9A%EF%BC%8C%E8%82%89%E8%89%B2%E6%A9%99%E9%BB%84%EF%BC%8C%E5%91%B3%E7%94%9C%EF%BC%8C%E5%93%81%E8%B4%A8%E4%BC%98%E8%89%AF%E3%80%82%E6%8A%97%E9%80%86%E6%80%A7%E5%BC%BA%EF%BC%8C%E8%80%90%E8%B4%AE%E8%BF%90%E3%80%82%26nbsp%3B%3C%2Fp%3E%3Ch3%20style%3D%22text-align%3A%20left%3B%22%3E%E3%80%90%E6%A0%BD%E5%9F%B9%E8%A6%81%E7%82%B9%E3%80%91%3C%2Fh3%3E%3Cp%20style%3D%22text-align%3A%20left%3B%22%3E%26nbsp%3B1%E3%80%81%20%E6%92%AD%E7%A7%8D%E6%9C%9F%EF%BC%8C%E5%B9%BF%E5%B7%9E%E5%9C%B0%E5%8C%BA%E6%98%A5%E6%92%AD1-3%E6%9C%88%E4%B8%8A%E6%97%AC%EF%BC%8C%E7%A7%8B%E6%92%AD7-8%E6%9C%88%EF%BC%8C%E5%85%B6%E5%AE%83%E5%9C%B0%E5%8C%BA%E6%8C%89%E5%BD%93%E5%9C%B0%E6%B0%94%E5%80%99%E6%9D%A1%E4%BB%B6%E8%80%8C%E5%AE%9A%E3%80%82%E6%98%A5%E7%A7%8D%E8%82%B2%E8%8B%97%E5%90%8E%E5%AE%9A%E6%A4%8D%EF%BC%8C%E7%A7%8B%E7%A7%8D%E5%8F%AF%E4%BB%A5%E7%9B%B4%E6%92%AD%E3%80%82%3C%2Fp%3E%3Cp%20style%3D%22text-align%3A%20left%3B%22%3E2%E3%80%81%20%E6%A0%AA%E8%A1%8C%E8%B7%9D4*8%E5%B0%BA%EF%BC%8C%E6%AF%8F%E7%A9%B4%E6%A4%8D%E4%BA%8C%E6%A0%AA%EF%BC%8C%E7%9B%B4%E6%92%AD%E6%AF%8F%E7%A9%B4%E6%92%AD3-4%E7%B2%92%E7%A7%8D%E5%AD%90%EF%BC%8C%E6%AF%8F%E4%BA%A9%E7%BA%A6%E9%9C%80%E7%A7%8D%E5%AD%9080-100g%E3%80%82%3C%2Fp%3E%3Cp%20style%3D%22text-align%3A%20left%3B%22%3E3%E3%80%81%20%E5%A4%9A%E6%96%BD%E6%9C%89%E5%9F%BA%E8%82%A5%EF%BC%8C%E8%8B%97%E9%AB%9812-15%E5%8E%98%E7%B1%B3%E6%97%B6%E8%BF%BD%E6%96%BD%E8%96%84%E8%82%A5%EF%BC%8C%E6%A0%AA%E9%AB%9830%E5%8E%98%E7%B1%B3%E6%97%B6%E5%9F%B9%E8%82%A5%E3%80%82%3C%2Fp%3E%3Cp%20style%3D%22text-align%3A%20left%3B%22%3E4%E3%80%81%20%E7%94%9F%E9%95%BF%E6%9C%9F%E5%86%85%E5%81%9A%E5%A5%BD%E5%BC%95%E8%94%93%E3%80%81%E5%8E%8B%E8%94%93%E5%8F%8A%E9%80%82%E5%BD%93%E6%91%98%E9%99%A4%E4%BE%A7%E8%94%93%E5%B7%A5%E4%BD%9C%E3%80%82%3C%2Fp%3E%3Cp%20style%3D%22text-align%3A%20left%3B%22%3E5%E3%80%81%20%E6%B3%A8%E6%84%8F%E9%98%B2%E6%B2%BB%E7%99%BD%E7%B2%89%E7%97%85%E3%80%81%E7%97%85%E6%AF%92%E7%97%85%E3%80%81%E9%BB%84%E5%AE%88%E7%93%9C%E3%80%82%3C%2Fp%3E%3Ch3%20style%3D%22text-align%3A%20left%3B%22%3E%E3%80%90%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9%E3%80%91%3C%2Fh3%3E%3Cp%20style%3D%22text-align%3A%20left%3B%22%3E1%EF%BC%8C%E5%95%86%E6%A0%87%E6%B3%A8%E5%86%8C%E5%8F%B7%E4%B8%BA%E2%80%9C%E7%B2%A4%E8%94%AC%E2%80%9D%E7%89%8C%EF%BC%8C%E5%95%86%E6%A0%87%E6%B3%A8%E5%86%8C%E8%AF%81%E6%98%AF1201668%E5%8F%B7%3C%2Fp%3E%3Cp%20style%3D%22text-align%3A%20left%3B%22%3E2%EF%BC%8C%E8%AF%A5%E7%A7%8D%E5%AD%90%E5%8F%AA%E9%80%82%E5%90%88%E5%86%9C%E4%B8%9A%E7%94%9F%E4%BA%A7%E7%94%A8%E7%A7%8D%EF%BC%8C%E4%B8%8D%E5%8F%AF%E5%86%8D%E7%95%99%E7%A7%8D%E6%A0%BD%E5%9F%B9%3C%2Fp%3E%3Cp%20style%3D%22text-align%3A%20left%3B%22%3E3%EF%BC%8C%E5%9B%A0%E5%90%84%E5%9C%B0%E6%A0%BD%E5%9F%B9%E5%8F%8A%E6%B0%94%E5%80%99%E6%9D%A1%E4%BB%B6%E4%B8%8D%E5%90%8C%EF%BC%8C%E7%A7%8D%E6%A4%8D%E7%94%9F%E9%95%BF%E8%A1%A8%E7%8E%B0%E5%8F%AF%E8%83%BD%E4%BC%9A%E6%9C%89%E6%89%80%E5%B7%AE%E5%BC%82%EF%BC%8C%E4%B8%BA%E5%85%85%E5%88%86%E5%8F%91%E6%8C%A5%E6%9C%AC%E5%93%81%E7%A7%8D%E7%9A%84%E7%A7%8D%E6%80%A7%EF%BC%8C%E8%AF%B7%E9%80%82%E6%97%B6%E3%80%81%E9%80%82%E5%9C%B0%E3%80%81%E9%80%82%E5%8F%91%E6%A0%BD%E5%9F%B9%E3%80%82%3C%2Fp%3E%3Cp%20style%3D%22text-align%3A%20left%3B%22%3E4%EF%BC%8C%E4%B8%BA%E6%9C%89%E6%95%88%E4%BF%9D%E6%8C%81%E7%A7%8D%E5%AD%90%E7%9A%84%E7%94%9F%E5%91%BD%E5%8A%9B%EF%BC%8C%E8%AF%A5%E7%A7%8D%E5%AD%90%E5%BF%85%E9%A1%BB%E5%9C%A8%E4%BD%8E%E6%B8%A9%E5%B9%B2%E7%87%A5%E5%A4%84%E5%AF%86%E5%B0%81%E5%82%A8%E8%97%8F%EF%BC%8C%E8%B4%AD%E7%A7%8D%E5%90%8E%E8%AF%B7%E5%8D%B3%E8%AF%95%E8%8A%BD%E7%8E%87%EF%BC%8C%E5%A6%82%E6%9C%89%E5%BC%82%E8%AE%AE%EF%BC%8C%E8%AF%B7%E5%9C%A815%E5%A4%A9%E5%86%85%E6%8F%90%E5%87%BA%E3%80%82%3C%2Fp%3E%3Cp%20style%3D%22text-align%3A%20left%3B%22%3E5%EF%BC%8C%E8%AF%B7%E4%BF%9D%E7%95%99%E6%9C%AC%E5%8C%85%E8%A3%85%E8%A2%8B%E5%8F%8A%E7%A7%8D%E5%AD%90%E6%89%B9%E5%8F%B7%EF%BC%8C%E4%BB%A5%E4%BD%9C%E4%BF%A1%E6%81%AF%E5%8F%8D%E9%A6%88%E3%80%82%3C%2Fp%3E%3Ch3%20style%3D%22text-align%3A%20left%3B%22%3E%E3%80%90%E7%99%BE%E8%94%AC%E8%AF%84%E9%89%B4%E3%80%91%3C%2Fh3%3E%3Cp%20style%3D%22text-align%3A%20left%3B%22%3E%E5%B9%BF%E4%B8%9C%E7%9C%81%E5%86%9C%E7%A7%91%E9%99%A2%E7%9A%84%E8%9C%9C%E6%9C%AC%E4%B8%89%E5%8F%B7%E5%8D%97%E7%93%9C%E5%B1%9E%E4%BA%8E%E6%97%A9%E7%86%9F%E6%80%A7%E7%9A%84%E8%9C%9C%E6%9C%AC%E5%8D%97%E7%93%9C%E7%B1%BB%E5%9E%8B%EF%BC%8C%E6%98%AF%E8%94%AC%E8%8F%9C%E6%89%80%E5%8D%97%E7%93%9C%E5%AE%A4%E7%A0%94%E7%A9%B6%E5%91%9810%E5%B9%B4%E7%A3%A8%E4%B8%80%E5%89%91%E7%9A%84%E4%BA%A7%E5%93%81%E3%80%82%E7%99%BE%E8%94%AC%E8%AE%A4%E4%B8%BA%E5%85%B6%E4%B8%BB%E8%A6%81%E4%BC%98%E7%82%B9%E4%B8%BA%3C%2Fp%3E%3Cp%20style%3D%22text-align%3A%20left%3B%22%3E%E7%AC%AC%E4%B8%80%EF%BC%8C%E7%86%9F%E6%80%A7%E6%AF%94%E8%BE%83%E6%97%A9%EF%BC%8C%E8%BD%AC%E8%89%B2%E5%BF%AB%EF%BC%8C%E8%BF%99%E6%A0%B7%E5%8F%AF%E4%BB%A5%E8%BE%83%E6%97%A9%E7%9A%84%E4%B8%8A%E5%B8%82%EF%BC%8C%E4%B9%B0%E4%B8%80%E4%B8%AA%E5%A5%BD%E4%BB%B7%E9%92%B1%E3%80%82%3C%2Fp%3E%3Cp%20style%3D%22text-align%3A%20left%3B%22%3E%E7%AC%AC%E4%BA%8C%EF%BC%8C%E7%89%B9%E5%88%AB%E6%98%AF%E7%93%9C%E6%80%A7%E7%9B%B8%E5%BD%93%E6%BC%82%E4%BA%AE%EF%BC%8C%E4%BC%BC%E8%8A%B1%E7%94%9F%E7%B1%B3%E5%9E%8B%EF%BC%8C%E4%B8%80%E8%88%AC%E6%9E%9C%E4%B8%BA9%E6%96%A4%E5%88%B013%E6%96%A4%E4%B9%8B%E9%97%B4%EF%BC%8C%E9%83%A8%E5%88%86%E7%93%9C%E5%8F%AF%E4%BB%A5%E8%BE%BE%E5%88%B016%E6%96%A4%E3%80%82%3C%2Fp%3E%3Cp%20style%3D%22text-align%3A%20left%3B%22%3E%E7%AC%AC%E4%B8%89%EF%BC%8C%E8%BF%9E%E7%BB%AD%E5%9D%90%E6%9E%9C%E8%83%BD%E5%8A%9B%E5%BC%BA%EF%BC%8C%E4%BB%8E%E6%88%91%E4%BB%AC%E4%B8%8A%E9%9D%A2%E6%89%80%E8%BF%B0%E7%9A%84%E5%9C%A8%E6%B9%96%E5%8C%97%E5%98%89%E9%B1%BC%E7%9A%84%E5%AE%9E%E9%99%85%E7%A7%8D%E6%A4%8D%E8%A1%A8%E7%8E%B0%E5%B0%B1%E5%8F%AF%E8%A7%81%E8%BF%99%E4%B8%80%E4%BC%98%E7%82%B9%E3%80%82%3C%2Fp%3E%3Cp%20style%3D%22text-align%3A%20left%3B%22%3E%E8%9C%9C%E6%9C%AC%E4%B8%89%E5%8F%B7%E5%8D%97%E7%93%9C%E5%B1%9E%E4%BA%8E%E8%9C%9C%E6%9C%AC%E5%8D%97%E7%93%9C%E7%B1%BB%E5%9E%8B%E7%9A%84%E7%BF%98%E6%A5%9A%E4%B9%8B%E4%BD%9C%EF%BC%8C%E5%8F%AF%E4%BB%A5%E4%B8%BA%E5%B9%BF%E5%A4%A7%E5%86%9C%E6%B0%91%E6%9C%8B%E5%8F%8B%E5%B8%A6%E6%9D%A5%E6%9E%81%E5%A4%A7%E7%9A%84%E7%BB%8F%E6%B5%8E%E5%88%A9%E7%9B%8A%EF%BC%8C%E6%AC%A2%E8%BF%8E%E8%AF%95%E7%A7%8D%E9%80%89%E8%B4%AD%EF%BC%81%3C%2Fp%3E%3Ch3%20style%3D%22text-align%3A%20left%3B%22%3E%E3%80%90%E7%99%BE%E8%94%AC%E8%AF%B4%E6%98%8E%E3%80%91%3C%2Fh3%3E%3Cp%20style%3D%22text-align%3A%20left%3B%22%3E%E8%9C%9C%E6%9C%AC3%E5%8F%B7%E5%8D%97%E7%93%9C%E6%98%AF%E5%B9%BF%E4%B8%9C%E7%9C%81%E5%86%9C%E7%A7%91%E9%99%A2%E8%94%AC%E8%8F%9C%E7%A0%94%E7%A9%B6%E6%89%80%E7%93%9C%E4%B8%89%E5%AE%A4%E7%9A%84%E8%82%B2%E7%A7%8D%E7%A7%91%E5%AD%A6%E5%AE%B6%E9%80%89%E8%82%B2%E7%9A%84%E6%9D%82%E4%BA%A4%E4%B8%80%E4%BB%A3%E5%8D%97%E7%93%9C%E3%80%82%3C%2Fp%3E%3Ch3%20style%3D%22text-align%3A%20left%3B%22%3E%E3%80%90%E9%80%89%E8%82%B2%E5%8D%95%E4%BD%8D%E3%80%91%3C%2Fh3%3E%3Cp%20style%3D%22text-align%3A%20left%3B%22%3E%E7%93%9C%E7%B1%BB%E7%A0%94%E7%A9%B6%E4%B8%89%E5%AE%A4%E4%B8%BB%E8%A6%81%E4%BB%8E%E4%BA%8B%E9%BB%84%E7%93%9C%E3%80%81%E5%8D%97%E7%93%9C%E9%81%97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%81%E2%80%9C%E7%B2%A4%E7%A7%808%E5%8F%B7%E2%80%9D%E5%8D%8E%E5%8C%97%E5%9E%8B%E7%AD%89%E9%BB%84%E7%93%9C%E5%93%81%E7%A7%8D%EF%BC%8C%E4%BB%A5%E5%8F%8A%E2%80%9C%E9%BE%99%E9%91%AB%E4%B8%B9%E2%80%9D%E3%80%81%E2%80%9C%E4%B8%B9%E7%BA%A21%E5%8F%B7%E3%80%813%E5%8F%B7%E2%80%9D%E5%8D%B0%E5%BA%A6%E5%8D%97%E7%93%9C%EF%BC%8C%E2%80%9C%E9%A6%99%E8%9C%9C%E5%B0%8F%E5%8D%97%E7%93%9C%E2%80%9D%E3%80%81%E2%80%9C%E6%97%A9%E8%9C%9C%E2%80%9D%E3%80%81%E2%80%9C%E5%B9%BF%E8%9C%9C%E2%80%9D%E7%AD%89%E5%8D%97%E7%93%9C%E5%93%81%E7%A7%8D%E3%80%82%E8%8E%B7%E5%BE%97%E7%9C%81%E7%A7%91%E6%8A%80%E4%BA%8C%E7%AD%89%E5%A5%963%E9%A1%B9%E3%80%81%E4%B8%89%E7%AD%89%E5%A5%962%E9%A1%B9%EF%BC%8C%E7%9C%81%E5%86%9C%E4%B8%9A%E6%8E%A8%E5%B9%BF%E4%BA%8C%E7%AD%89%E5%A5%961%E9%A1%B9%EF%BC%8C%E5%B9%BF%E5%B7%9E%E5%B8%82%E7%A7%91%E6%8A%80%E8%BF%9B%E6%AD%A5%E4%B8%89%E7%AD%89%E5%A5%961%E9%A1%B9%E3%80%81%E7%9C%81%E5%86%9C%E7%A7%91%E9%99%A2%E7%A7%91%E5%AD%A6%E6%8A%80%E6%9C%AF%E4%BA%8C%E7%AD%89%E5%A5%963%E9%A1%B9%E3%80%82%26nbsp%3B%3C%2Fp%3E%3Ch3%20style%3D%22text-align%3A%20left%3B%22%3E%E3%80%90%E8%8E%B7%E5%A5%96%E6%83%85%E5%86%B5%E3%80%91%3C%2Fh3%3E%3Cp%20style%3D%22text-align%3A%20left%3B%22%3E%3Cimg%20src%3D%22http%3A%2F%2Ft.maiseed.com%2Fdata%2Fgallery_album%2F2%2Foriginal_img%2F1541350569840459140.jpg%22%20style%3D%22white-space%3A%20normal%3B%22%2F%3E%3C%2Fp%3E%3Ch3%20style%3D%22text-align%3A%20left%3B%22%3E%E3%80%90%E7%94%B0%E9%97%B4%E5%AE%9E%E6%99%AF%E3%80%91%3C%2Fh3%3E%3Cp%20style%3D%22text-align%3A%20left%3B%22%3E%3Cimg%20src%3D%22http%3A%2F%2Ft.maiseed.com%2Fdata%2Fgallery_album%2F2%2Foriginal_img%2F1541350570294107665.jpg%22%2F%3E%3C%2Fp%3E%3Cp%3E%3Cimg%20src%3D%22http%3A%2F%2Ft.maiseed.com%2Fdata%2Fgallery_album%2F2%2Foriginal_img%2F1541306307113888227.jpg%22%2F%3E%3C%2Fp%3E%3Cp%3E%3Cimg%20src%3D%22http%3A%2F%2Ft.maiseed.com%2Fdata%2Fgallery_album%2F2%2Foriginal_img%2F1541298410055938535.jpg%22%2F%3E%3C%2Fp%3E&img_src=http://t.maiseed.com/data/gallery_album/2/original_img/1541306307113888227.jpg

原来把整个content作为参数来传值了,这个详情页的内容肯定不会少的,那么这个content的值就特别大,这个方法不可取,但是懒的去修改,解决问题就好

既然错误提示都说了,超过了服务器所能承载最大长度。

Request-URI Too Large
The requested URL's length exceeds the capacity limit for this server.

那么去修改这个长度就好了。

打开apache的httpd.conf

在Listen 80下面添加两个变量就好了,如下

Listen 80
LimitRequestLine 40940 
LimitRequestFieldSize 40940 

这样就解决问题了。

转载请注明:百蔬君 » 【mark】报414错误“Request-URI Too Large”的解决办法

喜欢 (32)or分享 (0)
发表我的评论
取消评论

请证明您不是机器人(^v^):

表情
(3)个小伙伴在吐槽
  1. 谢谢 🙂
    匿名2020-08-12 20:43 回复
  2. 头疼
    匿名2020-10-20 18:42 回复
  3. 谢谢
    匿名2021-03-26 12:59 回复