dqkv0603 2018-08-29 13:38
浏览 115

too long

I am working on a project using ZF3 and my requirenment related to local server. Suppose user 'test' login on the system then url for that user should be http://test.10.1.1.55

I have already googled for this and found a post Create subdomains on the fly with .htaccess (PHP)

For production environment subdomain is working properly but not for development environment. My server guys said to me this is not possible for local server so my question is this posible to create subdomains on local server like as live server?

e.g. 
http://test.10.1.1.55
http://test1.10.1.1.55

Note: Local server means I am talking about a system that can be accessed from others system on browser.

  • 写回答

2条回答 默认 最新

  • donglin7979 2018-08-29 13:44
    关注

    In this case, test.10.1.155 becomes a name, rather than an actual IP address.

    You could edit your /etc/hosts file, to add all these named entries, mapped to the same local IP address.

    Some additional help about the Hosts file:

    https://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog