我已经在http://sub.domain.com上安装了只有SSL的nginx,其中有docroot / home / webroot / login上传文件到/ home / webroot / uploads / 我希望文件夹/上传只能通过HTTP访问外部用户。 主用户界面只能通过HTTPS访问。 请帮忙。 # # The default server # server { listen 443; server_name sub.domain.com; ssl on; ssl_certificate /home/keys/sslkey.pem; ssl_certificate_key /home/keys/server.key; #charset koi8-r; #access_log logs/host.access.log main; location / { root /home/webroot; index index.html index.htm index.php; }
这是我的学习案例: 浏览器—> Apache代理—> ISA服务器—>互联网 ISA服务器需要authentication。 问题是允许通过两个代理HTTPS。 与HTTP一起工作的configuration是这样的:(是的,我不想使用ProxyPass,但ProxyRequests) <virtualhost *:8080> … SetEnv auth-proxy-chain on … ProxyRequests On ProxyRemote * http://isaproxy:80 … <proxy *> AuthName "ISA server auth" AuthType Basic [here a module to authenticate] require valid-user Allow from all </proxy> … </virtualhost> 用户可以在apache代理上进行身份validation,然后将身份validation链发送到允许HTTP传输的ISA服务器。 但是,当浏览器切换到HTTPS时,ISA服务器“说出”NTLM,并中断了对apache代理的身份validation。 如果我尝试使用类似这样的SSPI模块(ntlm): blablabla <proxy *> AuthName "ISA server auth" AuthType ntlm [ SSPI […]
我试图用下面的代码完全replace当前在httpd.conf中自动生成的虚拟主机(对于Ruby应用程序)。 我把它放在httpd.conf指定的每个虚拟主机块的位置(如userdata / std / 2 / username / site.org / *。conf: <VirtualHost *:80> ServerName www.site.org DocumentRoot /home/why/app/public <Directory /home/why/app/public> Allow from all Options -MultiViews </Directory> </VirtualHost> 我说'覆盖',因为当我运行/scripts/ensure_vhost_includes –all-users它告诉我<VirtualHost> cannot occur within <VirtualHost> section 。 这意味着我需要重新格式化虚拟主机,但我是新来的Apache,我只是希望它使用我包括,而不是试图“集成”它与当前的虚拟主机。 我的知识不足以知道它是否正确,所以我想使用我从Phusion Passenger(一个部署apache模块)给出的: http : //www.modrails.com/documentation/Users% 20guide%20Apache.html
最近,我遇到了一个问题,其中一些页面404通过他们的无止境的path访问。 查询string(如?1234或index.php被附加到path时,相同的页面工作。 例: http://pagesofinterest.net/code/plugins/code-complete/ – 失败 http://pagesofinterest.net/code/plugins/code-complete/?123 – 成功 http://pagesofinterest.net/code/plugins/code-complete/index.php – 成功 我不确定这是一个mod_rewrite还是一个caching问题。 这里是我的.htaccess文件的内容: # Use PHP5.3 Single php.ini as default AddHandler application/x-httpd-php53 .php #ExpiresDefault A0 Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0" Header set Pragma "no-cache" DirectoryIndex index.php index.html RewriteEngine on RewriteCond %{HTTP_HOST} ^www.pagesofinterest.net [NC] RewriteRule ^(.*)$ http://pagesofinterest.net/$1 [R=301,NC] # Error documents ErrorDocument 404 […]
我一直在试图让SSL工作,但我卡住了。 我尝试了几个解决scheme,在这里和其他谷歌的结果,但没有运气。 我从https://www.startssl.com/获得了一个免费的证书,我使用的是Windows服务器,客户端是Firefox(代码为ssl_error_rx_record_too_long,其他浏览器提供的信息较less)。 我正在尝试使用Django,但请求从来没有使它到服务器,所以我认为这是无关的; 控制台中没有显示任何内容。 Apache显示httpd没有错误。 该网站的http(不是https)版本正常工作。 向https请求添加:443不会更改错误。 (我认为)httpdconfiguration的相关部分是: Listen 80 LoadModule ssl_module modules/mod_ssl.so DefaultType text/plain <IfModule ssl_module> SSLRandomSeed startup builtin SSLRandomSeed connect builtin </IfModule> Listen 443 NameVirtualHost 85.223.64.8:80 Include "C:/Users/Mark/Web/Apache/httpd.conf.incl" <VirtualHost _default_:443> # Include expanded LogLevel warn ErrorLog "path/secure.error.log" DocumentRoot "path/www" ServerName django.mverleg.nl ServerAdmin [email protected] ServerAlias *.django.mverleg.nl ProxyPreserveHost On ProxyRequests Off SSLEngine on SSLSessionCache […]
我有一个用户名为“用户”,我用它来login到我的网站的FTP。 但是,这给我带来了一个问题。 如果我想允许我的用户访问ftp,我必须input以下内容: chown -R user:ftpusers /var/www/ 通过这样做,我的网站在浏览时不再可用。 为了使它再次可用,我必须input以下命令: chown -R www-data:www-data /var/www/ 用户'用户'同时在ftpusers和www-data组中。 我怎样才能解决这个问题,所以我不再需要这个types了? 我在Ubuntu上使用apache2和vsftpd
我正在尝试安装一个Ubuntu Web服务器,该服务器既利用Apache的httpd Web服务器,也利用基于Java的应用程序的glassfish。 我想我会用mod_proxy,因为我曾经有过这样的运气。 我知道了,所以基本的设置工作。 然而,在试图让glassfish作为一个守护进程运行时,我发现apache / glassfish连接在任何时候停止/重启glassfish而没有重新启动apache。 我可以在这里find我设置glassfish作为守护进程的基本指导: http : //137.254.16.27/foo/entry/how_to_run_glassfish_v3 。 A)有没有办法configuration的东西,所以我可以重新启动glassfish而不需要重新启动Apache? B)如果没有,是否有一个简单的方法来设置我的glassfish守护进程,同时重新启动apache而不依赖于glassfish和apache都在系统上? 换句话说,有一个脚本可以在Glassfish和Apache的服务器上以及只有glassfish的服务器上工作。
我的问题是我需要根据维基百科实现URL标准化。 我看到如何做到这一点的方法。 第一个是在web应用程序上执行这个操作,当非标准化的URL正在进入时,正则expression式检查是规范化的,如果是非规范化的,则将其redirect到规范化的。 第二个,在networking服务器级别做同样的事情。 如果有任何mod的apache或gnix delas与它? 谢谢!
我在Debian中为Django设置了Apache2和mod_wsgi,但是我发现了问题。 首先,这些是我的目录: /webapps/lib/python2.6/site-packages # python eggs /webapps/lib/python2.6/ # python libraries /webapps/myproject.wsgi # wsgi script /webapps/myproject/ # django project 这是目录/webapps/lib/python2.6 (权限是777): . ├── django │ ├── bin │ ├── conf │ ├── … │ └── views └── site-packages ├── easy-install.pth ├── mongoengine-0.5.3-py2.6.egg ├── pymongo-2.1-py2.6-linux-x86_64.egg └── site.py 在httpd.conf我有这样的: WSGIScriptAlias / /webapps/myproject.wsgi WSGIPythonEggs /webapps/lib/python2.6/site-packages/ 最后在myproject.wsgi : import sys […]
我的问题是关于将完整URL返回到前端Apache服务器的MediaWikiconfiguration。 以下是对问题的描述: 如果我直接在我的浏览器中input我的MediaWiki的URL – http:// MyWikiServer:4409 – 一切正常。 不过,我希望另一台Apache服务器(作为互联网和防火墙之间的“networking路由器”)充当维基networking的前端。 这适用于我们的许多应用程序,但是有两件事情发生在我所引导的Wiki中,它们全部或部分地使用了Wiki的configuration服务器名称。 但是,我不确定这个事实。 维基的graphics没有正确显示,并且 路过第一页,以文本forms显示,不起作用; 那是无法find的链接。 有没有人有一个什么可以configuration不正确的想法?