apache - Virtual Host ServerName without Port -


let's need setup virtual host server name text.dev, there way can enter test.dev in browser without port number? xampp running on port 8080. have run on port.

currently, can test.dev:8080 go correct directory, there way can set test.dev automatically go port 8080. appreciated, thanks.

this not possible directly way sketch it. has nothing virtual host configuration, browser behavior. if not specify port, browser connect port 80. nothing can against that.

so bet listen on port 80. if cannot or not want http server, have forward requests port 1 virtual host listens on. there several options such port forwarding: firewall based, using simple socket listener acts proxy or means of tunnel, example setup using ssh tools.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -