English 中文(简体)
查阅URL文件SSI环境变量
原标题:Looking for SSI Environment Variable(s) for Document URL

I m 寻找能够归还《URL......文件》的SSI环境变量

http://www.mySite.com/path/myPage.html

如今,我利用这些其他环境变数把它结合起来......

<!--#echo var="SERVER_NAME" -->

http://www.mySite.com和......

<!--#echo var="DOCUMENT_URI" -->

参见:/path/myPage.html>。

因此,我把他们放在一起......

http://<!--#echo var="SERVER_NAME" --><!--#echo var="DOCUMENT_URI" -->

而且,它只是罚款。

www.un.org/Depts/DGACM/index_spanish.htm 两个问题:

(1) 是否有一个单一SSI环境变量可用于《URL》的全部文件? 我一直在寻找一个时间,但似乎无法找到。

(2) 如果没有,一些人能否解释为什么? 缩略语 HTTP_REFER,将参考资料的全程电子格式退回,因此,不把目前地点的全部URL退回,例如<代码>。 DOCUMENT_URL?

最佳回答

页: 1 可以通过简单地放弃所有环境价值来加以检查:

<pre>
<!--#printenv -->
</pre>

2) 为什么? 我不敢肯定,或许是因为在一个单一的变量中,你能够像你一样加以合并是多余的。 这一点以及你可能也想做某些事情,如服务器协议(HTTP或HTTPS)或使用不同港口,或者任何其他原因。

帮助的希望

问题回答

暂无回答




相关问题
Using PHP to find part of a URL

Take this domain: http://www.?.co.uk/elderly-care-advocacy/mental-capacity-act-advance-medical-directive.html How could i use PHP to find the everything between the first and second slash regardless ...

Domains & Foreward Slash

This is rather difficult to explain so please bear with me. We will be hosting 4 websites on our server and the plan is to have each site sit under its own domain: site-a.com site-b.com sub1.site-b....

Encoding of window.location.hash

Does window.location.hash contain the encoded or decoded representation of the url part? When I open the same url (http://localhost/something/#%C3%BC where %C3%BCtranslates to ü) in Firefox 3.5 and ...

Auth-code with A-Za-z0-9 to use in an URL parameter

As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

采用网路服务方法

我撰写了一个网络服务,期望一个参数(所谓的“hlink”)成为一种ur。 在使用网络服务之前,URLEncode 所涉参数(“hlink”)。 然后我打电话......。

热门标签