apache

500 error when trying to add expires header to .htaccess

回眸只為那壹抹淺笑 提交于 2021-02-11 01:57:43
问题 I'm trying to add a far future expires header by editing my .htaccess file this is recommended in the yslow performance rules but when I do, I get a 500 internal server error here's the code I'm using, any body know what's up? ExpiresActive On ExpiresDefault A0 ExpiresByType image/gif A2592000 ExpiresByType image/png A2592000 ExpiresByType image/jpg A2592000 ExpiresByType image/jpeg A2592000 ExpiresByType image/ico A2592000 ExpiresByType text/css A2592000 ExpiresByType text/javascript

500 error when trying to add expires header to .htaccess

我是研究僧i 提交于 2021-02-11 01:56:17
问题 I'm trying to add a far future expires header by editing my .htaccess file this is recommended in the yslow performance rules but when I do, I get a 500 internal server error here's the code I'm using, any body know what's up? ExpiresActive On ExpiresDefault A0 ExpiresByType image/gif A2592000 ExpiresByType image/png A2592000 ExpiresByType image/jpg A2592000 ExpiresByType image/jpeg A2592000 ExpiresByType image/ico A2592000 ExpiresByType text/css A2592000 ExpiresByType text/javascript

log4j、使用log4j、打印sql日志

痞子三分冷 提交于 2021-02-11 01:52:08
添加pom文件依赖 <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> </dependency> <!-- https: // mvnrepository.com/artifact/commons-logging/commons-logging --> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.2</version> </dependency> <!-- https: // mvnrepository.com/artifact/org.slf4j/slf4j-api --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.26</version> </dependency> <!-- https: // mvnrepository.com/artifact/org.slf4j/slf4j-log4j12 --> <dependency> <groupId

Apache Velocity + Servlet 3.0

可紊 提交于 2021-02-10 20:50:00
问题 I'm upgrading from servlet 2.5 to 3.0, and I'm using Apache Velocity for templating, after a mvn dependency:tree I see velocity-tools depends on servlet-api:jar:2.3, there's a way to use servlet 3.0 with Apache Velocity? Thanks in advance 回答1: I had the same problem; my Servlet 3.0 project wouldn't compile because servlet-api 2.3 was on the Maven classpath as a dependency of Velocity Tools. The work-around is to declare the Velocity dependency as runtime so at compile-time the project still

Apache Velocity + Servlet 3.0

心已入冬 提交于 2021-02-10 20:43:51
问题 I'm upgrading from servlet 2.5 to 3.0, and I'm using Apache Velocity for templating, after a mvn dependency:tree I see velocity-tools depends on servlet-api:jar:2.3, there's a way to use servlet 3.0 with Apache Velocity? Thanks in advance 回答1: I had the same problem; my Servlet 3.0 project wouldn't compile because servlet-api 2.3 was on the Maven classpath as a dependency of Velocity Tools. The work-around is to declare the Velocity dependency as runtime so at compile-time the project still

Apache Velocity + Servlet 3.0

我只是一个虾纸丫 提交于 2021-02-10 20:37:50
问题 I'm upgrading from servlet 2.5 to 3.0, and I'm using Apache Velocity for templating, after a mvn dependency:tree I see velocity-tools depends on servlet-api:jar:2.3, there's a way to use servlet 3.0 with Apache Velocity? Thanks in advance 回答1: I had the same problem; my Servlet 3.0 project wouldn't compile because servlet-api 2.3 was on the Maven classpath as a dependency of Velocity Tools. The work-around is to declare the Velocity dependency as runtime so at compile-time the project still

Xampp Apache is not starting SSL configuration

半世苍凉 提交于 2021-02-10 20:15:14
问题 [Wed Mar 25 20:33:20.591528 2015] [ssl:error] [pid 24469] AH02578: Init: Unable to read pass phrase [Hint: key introduced or changed before restart?] [Wed Mar 25 20:33:20.591679 2015] [ssl:error] [pid 24469] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag [Wed Mar 25 20:33:20.591698 2015] [ssl:error] [pid 24469] SSL Library Error: error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error [Wed Mar 25 20:33:20.591711 2015] [ssl:error]

Execute a CGI each time a button was clicked without changing the current html page

倖福魔咒の 提交于 2021-02-10 19:56:42
问题 I am starting my internship on a Home Server able to control mutliple domotics equipments from a web page. The global idea is that based on a click on a button, a certain script is spawned on the server and controls a microcontroller. My tutor built a simple website he gave me, using AJAX to always stay on 1 page, and brings the menus according to user actions (they are hidden if not used, brought back to front if used). I have set up an apache server which I configured to execute CGI scripts

Botfront webchat widget not showing at Azure environment

点点圈 提交于 2021-02-10 19:54:30
问题 I'm running Rasa chatbot in container and apache2 in normal environment. When I open web page where chatbot is running there is no chatbot widget. When I run same configuration in my Virtual box environment, with Ubuntu 18.04 desktop , it works. it only shows this, no error messages // you can add a version tag if you need, e.g for version 0.11.5 https://cdn.jsdelivr.net/npm/rasa-webchat@0.11.5/lib/index.min.js Some information below: paulii@vetbot:~/rasaProd/rasaAsPa$ sudo netstat -plnt

JAR冲突问题的解决

心已入冬 提交于 2021-02-10 19:48:57
今天碰到群里小伙伴问,线上程序好像有多个不同版本的Netty包,怎么去看到底加载了哪一个? 在说如何看之前,先来说说,当你开始意识到项目里有多个不同版本的Jar包,都是因为遇到了这几个异常: 1、java.lang.NoSuchMethodException:自己代码中调用了某个方法,因为加载了其他版本的jar,这个版本正好没这个方法。 2、java.lang.NoClassDefFoundError:编译时候是好的,但是运行的时候,因为加载的jar版本问题,没有这个类。 3、java.lang.ClassNotFoundException:在动态加载某个Class的时候,因为要加载的jar不是正确的版本,而导致找不到这个类。 当你在本地运行ok,但到服务器上发现出现这些错误的时候,就要意识到很可能是jar冲突了(有相同依赖存在多个版本)。这个问题往往也会有这样的表现:多实例部署的时候,有的实例是好的,有的实例则不行。 查看加载的类和方法 根据之前分析的异常种类,我们可以去运行中的现场确认当前加载的问题。 这里我们可以使用阿里开源的Arthas工具,如果第一次用,那么按下面操作先安装再运行: curl -O https://arthas.aliyun.com/arthas-boot.jar java -jar arthas-boot.jar 运行好之后