我需要我的网站从ipv6到我的ios应用程序可以通过苹果validation。 这是因为我已经能够提交我的应用程序的第一个版本后遵循几个教程来configurationipv6,但由于某种原因,服务器似乎不兼容ipv6,我不觉得问题。 该域名是creforma.fr 也许它可以帮助: 使用ifconfig: eth0 Link encap:Ethernet HWaddr 00:07:cb:03:ae:e9 inet addr:163.xxx.29.247 Bcast:163.172.29.255 Mask:255.255.255.0 inet6 addr: 2001:xxx:2427:100::/56 Scope:Global inet6 addr: fe80::207:cbff:fe03:aee9/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6493973 errors:0 dropped:0 overruns:1 frame:0 TX packets:6107939 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:862938890 (822.9 MiB) TX bytes:7704140929 (7.1 GiB) Memory:80000000-8001ffff lo Link encap:Local Loopback […]
我们用一个表单和一个感谢页面构build了一个简单的网站: http : //healthcity.giveitatry.nl/ 。 这在我们的电脑上就像一个手套。 使用CMS的网站pipe理员可以创build几个这样的forms,例如sportsclubx.giveitatry.nl或sportsunlimited.giveitatry.nl(这些最后2个是尚未制作的例子)。 为了让子域名工作,我们有2个DNS Alogging: A *.giveitatry.nl 5.157.80.226 A giveitatry.nl 5.157.80.226 在服务器上,我们有以下虚拟主机: <VirtualHost *:80> DocumentRoot "/var/www/giveitatry" ServerName giveitatry.nl ServerAlias *.giveitatry.nl <Directory "/var/www/giveitatry"> allow from all Options +Indexes AllowOverride All </Directory> </VirtualHost> 在我们所有的计算机上,只有一个在我们的办公室,我们可以使用几个浏览器,甚至使用ping等地址。但是有一个MAC,得到SERVER NOT FOUND 。 我们已经刷新了每一个DNScaching,我们可以想到他的电脑上,但没有任何改变。 属于我们客户的几台电脑有相同的错误或未DNS not found或ERR_NAME_NOT_RESOLVED 。 看起来,他们似乎永远不会到我们的服务器的IP。 如果有人需要,可以添加我的整个虚拟主机configuration: <VirtualHost *:80> DocumentRoot /var/www/giveitatry </VirtualHost> <VirtualHost *:80> DocumentRoot "/var/www/xxxxxx" […]
我有一个运行在同一台计算机上的apache2和SOCKS代理服务器的网站。 该网站可以公开访问,我的SOCKS5服务器在本地主机上。 如何使来自Apache服务器的传入和传出stream量通过我的SOCKS服务器? 这很容易通过客户端来完成,因为他们可以托pipeSOCKS服务器(自己)并更改configuration(例如通过Firefoxnetworking)。 我需要这个的原因是因为我有修改的SOCKS中的function,操纵交通为公司的目的。 模型:客户端< – > SOCKS服务器< – > … Internet … < – > SOCKS服务器< – > Web服务器
我已经在新鲜的centos7上安装了httpd和php,并将一些文件放到/ var / www / html中,包括我写的安装脚本。 该脚本需要写入/ var / www / html目录中的configuration文件。 我创build了一个空的configuration文件,并将其转换为apache:apache。 然而试图用写权限来打开这个文件总是会给出错误: fopen(/var/www/html/config-local.php): failed to open stream: Permission denied 做研究我读了这句话:“为了达到一个文件,所有的父目录必须是可读的。” 所以我检查了他们。 /,/ var,/ var / www和/ var / www / html都是可读的。 那么这里发生了什么? 看来,apache用户是一种特殊的限制用户,因为testing与标准用户相同的场景工作正常。
我试图只覆盖特定用户代理的文件的MIMEtypes(Chrome),并保留其他(Firefox)的默认值。 Options +Indexes IndexOptions -FancyIndexing Header set Access-Control-Allow-Origin "*" RewriteEngine On RewriteCond %{HTTP_HOST} !^example.org$ RewriteRule ^(.*)$ http://example.org/$1 [R=301,L] # Turn off MultiViews Options -MultiViews # Directive to ensure *.rdf files served as appropriate content type, # if not present in main apache config AddType "application/rdf+xml" .rdf AddType "text/turtle" .ttl # Rewrite engine setup RewriteBase / […]
我可能在错误的网站上提出这个问题 – 所以我在这里试着提出问题。 就像拒绝访问目录中的所有文件一样; 同时允许访问子目录内的文件。 我以为我有这个舔,直到我注意到在一个子目录的Apache日志下的拒绝访问错误。 /www/domain.com/public_html/directory 在此文件夹中拒绝访问所有文件 /www/domain.com/public_html/directory/subdirectories 在子目录中允许完全访问包括jpeg,jpg和index.php文件的所有文件 子目录是dynamic相册,只包含JPG图像和index.php文件进行处理,没有别的。 这是我使用的,似乎很好去,直到我看到一个权限被拒绝的图像之一与错误的错误。 哪里有,应该有完整的访问权限。 <Directory "/www/domain.com/public_html/directory"> AllowOverride None Order Deny,Allow Deny from All <FilesMatch ".jpg|.jpeg|index.php"> Order allow,deny Allow from all </FilesMatch> ErrorDocument 403 / ErrorDocument 404 / </Directory> <DirectoryMatch "/www/domain.com/public_html/directory/[A-Za-z0-9]{6}"> Order Deny,Allow Allow from All ErrorDocument 403 /404.html ErrorDocument 404 /404.html </DirectoryMatch>
我在Debian 9.1上运行Apache2(2.4.10)。 我在“/ etc / apache2 / sites-available /”中configuration了几个子域,并使用a2ensite ***激活。 除了一个,所有子域名均按预期工作。 这个被忽略,并使用默认的virtualHost。 假设我的域名是myDomain.com。 我有serveralconfiguration文件: – aaa.myDomain.com – bbb.myDomain.com – ccc.myDomain.com – myDomain.com – xxx.myDomain.com – zzz.myDomain.com zzz.myDomain.com是一个不工作的人。 我已经复制了现有的和正在运行的configuration文件,在其中切换了名称,但仍然无法正常工作。 所有的子域configuration都是一样的,只是改变了名字。 <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /var/www/html/zzz.myDomain.com ServerName zzz.myDomain.com ServerAlias *.zzz.myDomain.com ErrorLog logs/zzz.myDomain.com-error_log CustomLog logs/zzz.myDomain.com-access_log common </VirtualHost> 默认的虚拟主机是这样configuration的 <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /var/www/html ServerName myDomain.com ErrorLog […]
我们有一个Ubuntu服务器上的Apache反向代理设置。 服务器应该通过反向代理将用户redirect到其他服务器并存储cookie。 带有Apache的服务器还运行着一个Wordpress安装程序。 我们已经设置好了,除了URL部分和cookies存在缺陷之外,它工作正常。 例: 当我们点击下面的urlhttps://subdomain.mywebsite.com/?a_aid=137355&brandid=509821&languageCode=EN&mobile=0 它redirect到 https://otherwebsiteintheproxyserver.com/?languageCode=EN&mobile=0 而且据我所知,它不存储任何cookies。 <IfModule mod_ssl.c> <VirtualHost subdomain.mywebsite.com:443> ProxyPreserveHost On RequestHeader set Front-End-Https "On" ServerName subdomain.mywebsite.com SSLProxyEngine on ProxyPass / http://someother.domain.com/ ProxyPassReverse / http://someother.domain.com/ ProxyPassReverseCookieDomain https://subdomain.mywebsite.com http://someother.domain.com/ SSLCertificateFile /etc/letsencrypt/live/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf SSLCertificateChainFile /etc/letsencrypt/live/chain.pem </VirtualHost> </IfModule>
我已经在Apache代理相互SSL上configuration了 SSLVerifyClient require SSLVerifyDepth 3 configuration和通信正如预期的那样工作。 现在我想从客户端证书中的Apache代理发送到主题DN中的通用名称字段的后端信息。 CN字段具有CN=[HexString1]-[HexString2] fromat。 我想要做的是: RequestHeader set HexString1 %{SSL_CLIENT_S_DN_CN_HexString1} RequestHeader set HexString2 %{SSL_CLIENT_S_DN_CN_HexString2} 我正在研究mod_rewrite,但它似乎并没有帮助我分裂CN来实现我的目标。 有没有办法如何在Apache代理中configuration它?
更新:大部分解决。 现在只有在您尝试访问http://www.example.com/any-real-file-without-an-extension/anything-afterwards-that-doesnt-end-in-a-slash的情况下http://www.example.com/any-real-file-without-an-extension/anything-afterwards-that-doesnt-end-in-a-slash 。 我猜服务器认为any-real-file-without-an-extension可能是一个目录…不知道如何解决这个问题。 PHP将“PATH_INFO”定义为URL的一部分: 包含任何客户端提供的path名信息,尾随实际的脚本文件名,但在查询string之前(如果可用)。 例如,如果当前脚本通过URL http://www.example.com/php/path_info.php/some/stuff?foo=bar ,那么$_SERVER['PATH_INFO']将包含/some/stuff 。 截至目前,我的网站将http://example.com/ contact_us.php/ANYTEXTCANGOHERE视为http://example.com/contact_us.php 在这种情况下, /ANYTEXTCANGOHERE是PATH_INFO。 我想这样做,这个path信息被删除到文件名,否则返回一个404。 有什么办法可以做到吗? 这里是我的.htaccess现在看起来像。 这很简单。 只是一个301redirect到www和最后的反斜杠,以及强制关联到文件没有扩展名和重写没有扩展。 我没有服务器root权限。 ErrorDocument 404 /404.php ErrorDocument 503 /503.php #Force www: RewriteEngine on RewriteCond %{HTTP_HOST} ^foodthing.org [NC] RewriteRule ^(.*)$ http://www.foodthing.org/$1 [L,R=301,NC] #get rid of trailing slashes RewriteCond %{HTTP_HOST} ^(www.)?foodthing\.org$ [NC] RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L] #1)externally redirect "/file.php" to […]