问题标签 [apache2.2]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
mercurial - 无法将更改推送到 webDAV 上的存储库
今天,我尝试将更改推送到我们托管在运行 webdav(通过 HTTPS)的 apache(2.2.x)上的共享存储库中。dav 目录中的存储库是我的工作目录的克隆。选项 NoUpdate 已启用。两个存储库都已启动。
为了继续,我将 dav-directory/repositoy 映射为网络驱动器,并将存储库设置为推送到“y:/”当我尝试从 Workbench 推送时,抛出异常“aborted, ret 255”。
从命令行推送抛出:
我试图更改目录的路径,因为侧面交换的分隔线对我来说看起来很奇怪。但它没有成功。
更多信息:我没有使用 hgweb 或任何基于 cgi 脚本的版本。
编辑有关该问题的多个 google 条目让我想到,将更改推送到 webDAV 提供的存储库是不可能的。此外,我必须使用 hgWeb 来解决这个问题。
但为什么我必须这样做?我的想法是 webDAV 能够写作。由于我将目录映射为网络驱动器 - mercurial 应该能够将更改推送到网络服务器,就像它推送到本地目录一样。
有人可以证实这一点吗?
wampserver - CakePHP 1.1 Apache 和 Wamp Server 500 内部服务器错误
.htaccess
根/.htaccess
webroot/.htaccess
public_html/.htaccess
Apache 错误日志:文件不存在:C:/wamp/www/favicon.ico
再会?您知道有关此 500 内部服务器错误的解决方案是什么吗?请帮我!提前致谢。
php - Redirect requested asp urls to php using htaccess
We had a major site rework and now our new site is PHP based. We have some sites which have our old pages linked to them which were asp pages in the past. I want to create a htaccess rule but I have failed to get the desired result. If anyone can help it would be great.
The incoming pages will be in the format
http://www.mysite.com/tour.asp?id=1234
where 1234 is dynamic and can vary. I want to redirect this to the page viewer.php
and change the query string variable id
to tourid
so the page requested should be
http://www.mysite.com/viewer/1234
I have another rule in htaccess which routs the above url to
http://www.mysite.com/viewer.php?tourid=1234 (this is working)
I need a rule by which the 1st url is routed to the 2nd one hoping it will open the 3rd url. How can i achieve this?
Since I am new to htaccess, can someone help me around how to achieve this routing? I want to clear here that the server now is php and I have to accomplish this using htaccess only. I followed other similar questions but found none that answers my query.
apache - Apache 2.2.25 和 Weblogic 12c 的 WLExcludePathOrMimeType 问题
我在尝试使用 WLExcludePathOrMimeType 为 Apache Web Server 2.2.25 中的 weblogic 模块添加排除项时遇到问题。我正在使用 Weblogic 12c。以下是 httpd.conf 的摘录。
问题是,对于排除它只排除最后一个条目,即 *.png 在这种情况下。我试过给逗号分隔的列表,比如
在这种情况下,它只选择第一个条目,即 *.json。我不确定这是 mod_wl 插件的错误还是语法有问题。任何帮助/解决方法将不胜感激。
只是补充一下,带有逗号分隔列表的 WLExcludePathOrMimeType 与 IIS 作为 Web 服务器和 Weblogic 组合一起工作得很好。
perl - 使用 apache2 和 ActivePerl 5.16 编译 mod_perl?
我在 RHEL 5.9 服务器上使用 ActivePerl 5.16。我已经设置了 PATH 变量,以便首先找到 ActivePerl 可执行文件。现在我正在尝试编译 mod_perl.so。但是,该命令perl Makefile.PL MP_APXS=/usr/sbin/apxs
会产生:
我对这一切有点困惑......我是一个 Perl 初学者,我只想在我的服务器上启动并运行一些软件(很大程度上基于 Perl)。有什么建议吗?
openssl - Apache 上的 SSL 配置
我对 apache2 和 ssl 都有基本的了解,是的,让我们抛出 zabbix,我正在从事的项目,所以请原谅我。
我正在尝试做的是,在 zabbix 监控软件上启用 https 而不是通常的 http 访问。
Zabbix 设备在 opensuse 12.2 和 apache 2.2.22 上运行。
我遇到了这篇博文:http: //beeznest.wordpress.com/2008/04/25/how-to-configure-https-on-apache-2/ 我在使用以下方法创建自签名证书时运气不错:openssl req -new -x509 -days 365 -keyout key/vhost1.key -out crt/vhost1.crt -nodes -subj '/O=A/OU=B/CN=C'</p>
现在,当我尝试更改虚拟主机配置时,问题就来了。更让我困扰的是,似乎有 3 个 conf 并且我对要更改哪个感到困惑。1. ssl-global 2. vhost-ssl.template 3. default-vhost-ssl.conf
请问3个配置有什么区别,以及为我的任务编辑哪一个。希望那里的人可以回答我的查询,或者可以为我指出正确的方向:使用 opensuse12.2 在 apache2 上使用 SSL
谢谢你。
问候,杰姆
mod-rewrite - 在 apache 中重写 URL
我正在尝试重写 url,以便每当我输入说 /foo.html 时,我希望隐藏文件的扩展名,以便在地址栏上我只能看到 /foo 。我尝试在 apache 服务器的 .htaccess 文件中搜索并使用 rewritecond 表达式,但地址栏中的 url 没有改变。我观察到的另一件事是,当我键入 /foo 或 /foo.html时,即使我删除了.htaccess文件,浏览器也会显示我的 foo.html 文件的内容。
我在 ubuntu 12.10 上使用 apache2。
regex - Apache 2.2 .htaccess 文件迁移 - 正则表达式错误
我们正在尝试将 .htaccess 文件迁移到 Apache 2.2.25。由于正则表达式的更改,我们的 .htaccess 文件似乎与我们的旧版本与新版本的 Apache 2.2.25 不兼容。
我做了一些研究,但遗憾的是我无法弄清楚需要改变什么。
我们在 Apache 错误日志中收到以下错误。
.htaccess:无法编译正则表达式。
这是我们的 .htaccess 文件。我认为这些“RedirectMatch 301”是导致问题的原因。
以下似乎工作正常,并且不会在 Apache 错误日志中产生错误。
php - 使用 /directory/file.js 不包括域
所以我以前从未见过这种情况。我有一个使用 Debian Linux 和 Apache 2.2 的 EC2 服务器(第一次设置)。使用这样的路径/js/file.js
正在寻找http://js/file.js
. 在我的本地机器和我的 Dreamhost 共享服务器上,我没有这个问题。事实上,我以前从未在服务器上看到过这个问题。它应该做的是寻找http://domain.com/js/file.js
. 有谁知道为什么会发生这种情况?我已经倾注了我的 php.ini 文件并且没有任何提示我应该更改或添加什么来解决这个问题。
.htaccess - 基于时间戳重定向文件的规则?
我需要根据名称上的日期和时间过滤 JSON 文件。
如果文件名datetime.json
大于当前时间,我想重定向到future.json
.
如果文件名小于当前时间,则不要重定向。
例如:
当前日期和时间是1377512625
。文件名为1345732202
. 当前日期和时间大于文件名,然后服务1345732202.json
:
当前日期和时间是1377512625
。文件名为1408804202
. 当前日期和时间小于文件名,则服务future.json
: