小编crs*_*tin的帖子

如何为Yarn设置自定义缓存路径?

我刚刚安装了Yarn,我正试图从npm切换.

我尝试像这样设置我的缓存路径,但它没有成功:

yarn --cache-folder /usr/local/Caches/yarn
yarn global --cache-folder /usr/local/Caches/yarn
yarn global cache --cache-folder /usr/local/Caches/yarn
yarn cache --cache-folder /usr/local/Caches/yarn
yarn config set --cache-folder /usr/local/Caches/yarn
Run Code Online (Sandbox Code Playgroud)

这是yarn配置文档.

yarnpkg

7
推荐指数
1
解决办法
4476
查看次数

如何在 htaccess 中将子文件夹重定向为代理?

我正在运行 isso 应用程序localhost:63837,我想代理来自的请求https://www.domain.com/isso

这些是我的方法:

RewriteRule https://www.domain.com/isso/(.*)$ http://127.0.0.1:63837/$1 [P] 
RewriteRule /isso/(.*)$ http://127.0.0.1:63837/$1 [P] 
RewriteRule /isso(.*)$ http://127.0.0.1:63837/$1 [P]
Run Code Online (Sandbox Code Playgroud)

通常我会进行调整httpd-vhost.conf,但在这种情况下,我无法在我的主机(uberspace)上执行此操作。

<Location "/isso">
  ProxyPass "http://127.0.0.1:63837"
  ProxyPassReverse "http://127.0.0.1:63837"
</Location>
Run Code Online (Sandbox Code Playgroud)

另外,我不喜欢为此使用子域。

apache .htaccess uberspace

3
推荐指数
1
解决办法
5376
查看次数

标签 统计

.htaccess ×1

apache ×1

uberspace ×1

yarnpkg ×1