是否可以更改 WAMP 調用的 url? (Is it possible to change the url called by WAMP?)


問題描述

是否可以更改 WAMP 調用的 url? (Is it possible to change the url called by WAMP?)

When click 1 and/or 2 WAMP open the web without my configured IP 

i.e. 

1 open http://localhost/, I need localhost:8080 2 open http://localhost:8080/phpmyadmin/, I need localhost:8080

Is it possible to add the port in WAMP's configuration somewhere? Currently I add it manually.

Thanks to JK suggestion I've try and found that in wampmanager.tpl file, search for localhost will expose the marked-red area which help to add the port.


參考解法

方法 1:

Navigate to your WAMP installation folder and locate the files wampmanager.ini and wampmanager.tpl. Replace all occurrences of localhost with localhost:8080 within these two files. Restart wampserver.

方法 2:

Actually, @JK, the wampmanager.tpl is the template file used (by wampmanager.exe during start up) to generate wampmanager.ini. So you only need to edit the .tpl file and that solves it.

*TIP: You can also add custom menus to your wamp tray icon by adding entries to the wampmanager.tpl file.

方法 3:

Edit the file C:\wamp64\wampmanager.conf and change the port:

[apache]
apachePortUsed = "8080"

Then exit and relaunch wamp.

(by Nam G VUJK.profnotimeNicolas)

參考文件

  1. Is it possible to change the url called by WAMP? (CC BY-SA 3.0/4.0)

#port #wamp






相關問題

使用java應用程序在linux中打開端口 (Open port in linux with java application)

如何在linux中了解特定端口的流量 (How to know traffic to a specific port in linux)

HDMI 連接不發送 WM_DEVICE_ARRIVAL 消息 (HDMI Connection Does Not Send WM_DEVICE_ARRIVAL Message)

移植安卓4.2 (Port android 4.2)

如何等到服務器上線才能訪問 REST API (How to wait till a server goes online to access a REST API)

與 apache 網絡服務器和 Node.js REST 服務器共享 HTTP 端口 80 (Share HTTP port 80 with apache webserver and Node.js REST server)

lighttpd:身份驗證後如何將端口(僅對本地主機可見)轉發到 WAN? (lighttpd: How to forward port (visible only to localhost) to WAN after authentication?)

通過警報端口重定向所有程序數據包 (Redirect all program packets through alerternate port)

在同一台計算機上的兩個程序之間發送和接收 UDP 數據包 (Sending and receiving UDP packets between two programs on the same computer)

是否可以更改 WAMP 調用的 url? (Is it possible to change the url called by WAMP?)

ServerSelectionTimeoutError:documentdb.documents.azure.com:10255:超時 (ServerSelectionTimeoutError: documentdb.documents.azure.com:10255: timed out)

kubernetes 正在暴露未聲明的端口 (kubernetes is exposing not declared port)







留言討論