Articles of redirect

如何阻止用户文件夹redirect

我正在设置一个新的Windows Server 2003机器,并且使用它创build了一个包含文件夹redirect的新组策略。 我不小心将这个新的GP链接到错误的OU,并且当我不想要的时候应用文件夹redirect。 我已经取消链接并链接到正确的OU,但应用此GP的用户仍然将其文件夹redirect和同步。 我怎样才能阻止这种情况发生? 我重命名了configuration文件(而不是删除),用户无法正确login,这表明redirect的文件夹仍在使用configuration文件,我不想这样做。 谢谢。

redirect文件文件夹的Windows 7

我有一个GPO设置为将文档文件夹redirect到我们的学生的H:驱动器。 它的工作,但有条件。 如果学生的H:驱动器中已经存在“我的图片”,“我的video”和/或“我的音乐”文件夹,则文档将不会redirect,因为它会自动创build其中的文件夹。 如果我从学生的驱动器中删除这三个文件夹,那么文件夹redirect将被激活。 显然,进入每个学生的文件夹并删除这些文件是不切实际的。 有没有解决办法或我缺less的东西? 该策略设置为基本redirect每个人的文件夹到指向用户的主驱动器的目标位置相同的位置。 在GPO的设置下,将选中所有3个框,并且策略移除具有“在删除策略时将文件夹保留在新位置”的选项。

如何在不设置ServerName的情况下redirect/重写FQDN URL?

通常在企业内部网中,用户不需要提供FQDN就可以将URL指向主机名。 例: http://internalHost 代替 http://internalHost.example.com 我想redirect用户/重写URL,以便一切都将使用FQDN。 这里是catch:我不想显式地设置ServerName。 (这是为了部署在多个Intranet上的产品,所以我们不能提前知道ServerName的值)。 根据: http : //wiki.apache.org/httpd/CouldNotDetermineServerName Apache使用反向查找来确定默认的FQDN。 我如何使用/引用Apache正在使用的mod_rewrite或redirect的FQDN?

Nginx的。 使用正则expression式redirect

我是nginx的新手。 我有Apache之前的nginx,我有问题。 我似乎需要在configuration2规则: 规则1)如果我们有url“/ my_path”我们不碰它,但用户去“/ my_path.php” 规则2)如果我们有url“/my_path.php”,我们将它改为“/ my_path”,用户转到“/my_path.php”,因为我们回到规则1。 我认为这是必要的search引擎优化? 我的configuration,例如是… server { listen 8080; server_name my_apache_server; location / { proxy_pass http://my_apache_server/; } location ~^\/(.+)$ { rewrite ^\/(.+)$ /$1.php break; proxy_pass http://my_apache_server/; } location ~^\/(.+)\.php$ { proxy_redirect http://my_apache_server/$1 http://my_apache_server/error.php; } … } 但是nginx显示一个错误: nginx: [emerg] "proxy_pass" cannot have URI part in location given by regular expression, […]

没有文件夹redirect的用户login实际上是瞬间的,但用户*用*文件夹redirectlogin大约需要45秒

我刚刚configuration了Windows 7笔记本电脑,用于SBS 2003域。 一切正常,除了使用文件夹redirect的用户必须等待大约45秒才能在input凭据后看到自己的桌面。 当它们通过VPN远程连接到主站点时以及脱机时都会发生这种情况。 相比之下,没有文件夹redirect的用户几乎可以即时login(无论是否有networking连接)。 这是否会有额外的延迟? 如果没有,我们有什么可能的select来减lesslogin时间?

Apache限制/ var / www子目录访问

我有2个虚拟主机,它们正在查看/var/www/site1 (ServerName site1 )和/var/www/site2 (ServerName site2 )。 我想通过在默认configuration( 000-default.conf )中设置一个重写规则来使我的站点不能被http://1.2.3.4/site1或http://1.2.3.4/site2使用: RewriteEngine On RewriteCond %{HTTP_HOST} ^1\.2\.3\.4 RewriteRule (.*) http://test.com/$1 [R=301,L] 但网站仍然可以在http://1.2.3.4/site1和http://1.2.3.4/site1 (虽然redirect工程http://1.2.3.4/ )。 我究竟做错了什么?

如何使NGINX从httpredirect到https?

我想在NGINX服务器块中从httpredirect到https。 在一篇相关的文章中,我尝试在下面的NGINXconfiguration文件中添加另一个服务器模块,但是得到了一个“冲突的服务器名称”警告,因为(大概) server_name的值不包括协议前缀: server { listen 80; listen 443 ssl; ssl_certificate /etc/nginx/ssl/server.crt; ssl_certificate_key /etc/nginx/ssl/server.key; server_name sub.domain.co.uk; return 302 https://sub.domain.co.uk$request_uri; } server { listen 443 ssl; ssl_certificate /etc/nginx/ssl/server.crt; ssl_certificate_key /etc/nginx/ssl/server.key; server_name sub.domain.co.uk; location / { root /home/saves/webapps/html/; index index.html; } location /api/ { […] } }

Nginx的子域路由redirect不工作

这是我在nginx_conf文件中的服务器块: 我正在使用cloud66,所以我可以从我的仪表板进行编辑。 这不断打破。 我怀疑这是因为我的条件和声明。 我正在尝试将以下url转到以下url: http://subdomain.domain.com/notes.php并将其路由到/ dashboard将其路由到http://domain.com/dashboard http://subdomain.domain.com/contact-us.php并将其路由到/ dashboard将其路由到http://domain.com/contact-us/new http://subdomain.domain.com/help.php并将其路由到/ dashboard将其路由到http://domain.com/faq server { … # redirect old routes on subdomain server_name ~^www\.(?<domain>.+)$; if ($host ~ "^(.*)$domain") { set $subd $1; if $1 = 'notes.php'{ rewrite ^(.*) /dashboard permanent; } if $1 = 'contact-us.php'{ rewrite ^(.*) /contact-us/new permanent; } if $1 = 'help.php'{ rewrite ^(.*) /faq […]

Nginx重写URL的一部分

我试图从URL的选项IDredirect到URL的选项URL_key我已经分配。 我有两个列ID与ID我想replace和URL_key作为替代。 11337酒吧11419餐厅11399咖啡厅15477绘画 我现在有这些url: ifab.ru/art/kartiny/location/11399/style/15477 我想redirect到: ifab.ru/art/kartiny/location/cafe/style/painting 你可以说我可以把网站上的所有url都replace成replaceurl,但是它们是自动生成的,而且每个url的组合可能都不一样,所以我想抓住这个ID并把它改写成URL_key。 任何想法和解决scheme,赞赏。 我们在nginx上运行我们的服务器,没有apache。

如果通过https请求未启用SSL的域,则Apache将在同一台服务器上为不同的启用SSL的域提供服务?

我在Apache服务器(例如http://www.example.com )上托pipe多个网站,其中只有一个网站具有SSL证书(例如https://www.example.net )。 是否可以设置Apache,以便尝试浏览到https://www.example.com不会导致Apache服务https://www.example.net ? 如果是这样,怎么样? 我问这是因为我的托pipe服务提供商说: …如果SSL连接尝试到服务器上的任何IP,并且没有可用于该域的SSL虚拟主机,则连接到列出的第一个可用的SSL虚拟主机。 …如果机器上有多个SSL虚拟主机,当它们不匹配时,会自动连接到httpd.conf文件中显示的第一个。