Php Laravel Homestead和Nginx子域通配符
我对nginx和homestead有问题。我无法使动态子域工作。我试过这里的一切都是我的配置 操作系统:Ubuntu 14.04 LTS 64位 来宾操作系统:Ubuntu 14.04 LTS 32位(带家园的流浪汉) 亚马尔家园酒店Php Laravel Homestead和Nginx子域通配符,php,ubuntu,nginx,dns,homestead,Php,Ubuntu,Nginx,Dns,Homestead,我对nginx和homestead有问题。我无法使动态子域工作。我试过这里的一切都是我的配置 操作系统:Ubuntu 14.04 LTS 64位 来宾操作系统:Ubuntu 14.04 LTS 32位(带家园的流浪汉) 亚马尔家园酒店 ip: "192.168.10.10" memory: 512 cpus: 1 provider: virtualbox authorize: /home/user/.ssh/id_rsa.pub keys: - /home/user/.ssh/id_
ip: "192.168.10.10"
memory: 512
cpus: 1
provider: virtualbox
authorize: /home/user/.ssh/id_rsa.pub
keys:
- /home/user/.ssh/id_rsa
folders:
- map: /home/user/Projects
to: /home/vagrant/Projects
sites:
- map: businesspage.local
to: /home/vagrant/Projects/BusinessPage/public
/etc/主持人
192.168.10.10 businesspage.local
192.168.10.10 *.businesspage.local
/etc/nginx/sites enabled/businesspage.local
server {
listen 80 default_server;
listen 443 ssl;
server_name businesspage.local *.businesspage.local;
root "/home/vagrant/Projects/BusinessPage/public";
index index.html index.htm index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
最后,这是我在dnsmasq.conf中添加的内容
address=/.local/192.168.10.10
此外,我还添加了192.168.10.10作为主机网络配置中的附加DNS服务器。我还刷新了dns,重启等。。。我不知道我还能做什么。当我试着打开它时,它工作了,但如果我试着打开它,它就不工作了。任何帮助都将不胜感激。提前谢谢
更新:对于有相同问题的用户,请不要使用.local TLD。这是我的问题。本地被samba或其他东西使用。。。您应该使用.dev或其他东西,但不能使用.local 在dnsmasq.confNope中尝试address=/businesspage.local/192.168.10.10。。。它不起作用了。在我做了更改后,我重新启动了dnsmasq服务。你对此有何解决方案?@Citizen查看我的op更新也不使用。开发人员使用。“.test”在dnsmasq.confNope中尝试address=/businesspage.local/192.168.10.10。。。它不起作用了。在我做了更改后,我重新启动了dnsmasq服务。你对此有何解决方案?@Citizen查看我的op更新也不使用。开发人员使用。“.test”