nginx-location

    0熱度

    1回答

    我正在爲一個項目,我必須在網絡中流傳播從樹莓派相機模塊的實時視頻。爲此目的,我使用nginx服務器和picam software,但我很難與它。我添加了目錄路徑在nginx.conf文件烏德的HTTP部分是這樣的: server { location /hls/ { root /run/shm; index index.m3u8 index.html;

    0熱度

    1回答

    我的改寫作品。 另一方面,我的404錯誤重定向不再工作。 如果我添加到我的.php鏈接它返回我沒有文件。 同樣,當我把我的鏈接管理員/它把我的開幕式,菜單和copiryght。 舉例如果我把https://mon.domain.com/admin/加載我一頁,而我想我的404錯誤頁面。 我想什麼,如果頁面不存在,在我遇到我的錯誤無論如何404 你能幫助我嗎? 這裏是Nginx的配置: upstre

    1熱度

    1回答

    我需要Nginx是由URI一樣打開文件: http://example.com/en/foo/test-bar從/var/www/example.com/en_US/_foo_test_bar 或 從http://example.com/en/foo2/test2-bar在/ var/www/example.com/en_US/_foo2_test2_bar 替換除字母/數字之外的所有符號以進行下

    1熱度

    1回答

    全部, 我是nginx和服務器的新手,我無法處理nginx重寫規則。我想小寫所有的URL並刪除一些字符串。 我有一個電子商務網站,目前的URL結構是這樣的:(爲了避免被認作計算器鏈接,我加之間的HTTP和空間:故意) product page: http ://www.example.com/Some-Product-pd123456.html product category: http :/

    0熱度

    1回答

    是否有我可以用來重定向部分uri的變量?我有 location /api/v1/ { proxy_pass...; } location /api/ { return 302 /api/v1/$request_uri; } 可是,如果我叫一個url像/api/user,它重定向到/api/v1/api/user。我如何重定向到/api/v1/user?有沒有一個變量

    3熱度

    1回答

    我在直接聯繫一個nginx的CONF與自定義位置: 代碼: location /reset-password { alias /home/**/domains/**.**/public_html/api/frontend-scripts/resetPassword; include /usr/local/directadmin/data/users/**/nginx_php.c

    0熱度

    1回答

    我想使用nginx重定向完整的url。 這不起作用: server { listen 80; server_name www.domain1.com www.domain2.com www.domain3.com ; if ($http_host$request_uri ~ www.domain2.com/hello.html) { rewrite^google

    2熱度

    1回答

    我設立nginx的(1.10.2)VUE(2.1.x的),我有以下配置: location/{ root /var/lib/myRepo/dist/; index index.html; } 這工作時,我打 'http://localhost:8080/',但當我打其他的網址,如: 'http://localhost:8080/products/home',我得到: 40

    0熱度

    1回答

    所以我有一個基於正則表達式的定位規則,這樣的事情: location ~ /(abc.*xyz|def.*zxy|ghk.*qwe)/ 我可以檢查哪些正則表達式的一部分,得到了比賽? 意思就是比我想如果URL像 /12abc34/ 知道它是由 .*abc.* 有沒有辦法匹配? 我正在使用AWS上的Debian VM運行最新的使用lua-module編譯的nginx。 ---------

    0熱度

    1回答

    我想用一個位置指令的nginx作爲 /auth /中 例子: - location = /auth/v1/registration { proxy_pass http://backend1/auth/v1/registration; } 在這個例子中,我想,像如果我提供前/AUTH什麼/後/auth /中採取的是默認情況下它只是只匹配權威性 location =