Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 从浏览器运行本地http_Windows_Google Chrome_Firefox_Cmd - Fatal编程技术网

Windows 从浏览器运行本地http

Windows 从浏览器运行本地http,windows,google-chrome,firefox,cmd,Windows,Google Chrome,Firefox,Cmd,我必须从Run/Powershell/where打开一个网页(位于本地服务器上) 在“运行”窗口中,我写道: firefox \\192.168.167.147\test.php 或在Powershell上: [system.Diagnostics.Process]::Start("firefox", "\\192.168.167.147\test.php") Firefox启动但打开此页面: file://///192.168.167.24/test.php 而不是 192.168.16

我必须从Run/Powershell/where打开一个网页(位于本地服务器上)

在“运行”窗口中,我写道:

firefox \\192.168.167.147\test.php
或在Powershell上:

[system.Diagnostics.Process]::Start("firefox", "\\192.168.167.147\test.php")
Firefox启动但打开此页面:

file://///192.168.167.24/test.php
而不是

192.168.167.24/test.php
铬也一样


你有什么想法吗?

我不太明白你的问题

但我通常在wampserver中使用vhosts/.conf文件来创建本地主机

例如:test.conf

<VirtualHost *:80>  
    DocumentRoot "d:/example/repos/public"
    ServerName local.example.domain.com
    ServerAlias local.example.domain.com        
</VirtualHost>
<Directory "d:/example/repos/public">
    AllowOverride All
    Options Indexes FollowSymLinks
</Directory>

DocumentRoot“d:/example/repos/public”
ServerName local.example.domain.com
ServerAlias local.example.domain.com
允许超越所有
选项索引跟随符号链接

希望这有帮助我不太理解你的问题

但我通常在wampserver中使用vhosts/.conf文件来创建本地主机

例如:test.conf

<VirtualHost *:80>  
    DocumentRoot "d:/example/repos/public"
    ServerName local.example.domain.com
    ServerAlias local.example.domain.com        
</VirtualHost>
<Directory "d:/example/repos/public">
    AllowOverride All
    Options Indexes FollowSymLinks
</Directory>

DocumentRoot“d:/example/repos/public”
ServerName local.example.domain.com
ServerAlias local.example.domain.com
允许超越所有
选项索引跟随符号链接

希望这有助于使用
\
将默认使用
文件://
协议

如果您直接在Firefox或Chrome的地址栏(或者顺便说一下Windows资源管理器)中键入
\\192.168.167.147
,也会发生同样的情况

您需要明确使用您想要使用的协议
http://
ftp://
或其他任何协议


firefox将使用
\\
执行此操作,默认情况下,firefox将使用
文件://
协议

如果您直接在Firefox或Chrome的地址栏(或者顺便说一下Windows资源管理器)中键入
\\192.168.167.147
,也会发生同样的情况

您需要明确使用您想要使用的协议
http://
ftp://
或其他任何协议


firefox将在运行窗口中执行此操作

对于Firefox


在跑步窗口中,

对于Firefox


有没有理由不打开firefox http://192.168.167.147/test.php或http://localhost/test.php?谢谢!!!这就是解决办法!很乐意帮忙。默认情况下,在windows中使用\\将使用file://协议。如果您直接在firefox或chrome(或Windows资源管理器)中键入\\192.168.167.147也一样,谢谢!请将此作为答复发送,这样我就可以接受itC:\Program Files\Internet Explorer>iexplore www.google.co。在这里,我可以在Internet Explorer中打开google。你也可以在其他浏览器上使用它。有没有理由不打开firefox http://192.168.167.147/test.php或http://localhost/test.php?谢谢!!!这就是解决办法!很乐意帮忙。默认情况下,在windows中使用\\将使用file://协议。如果您直接在firefox或chrome(或Windows资源管理器)中键入\\192.168.167.147也一样,谢谢!请将此作为答复发送,这样我就可以接受itC:\Program Files\Internet Explorer>iexplore www.google.co。在这里,我可以在Internet Explorer中打开google。您也可以在其他浏览器的基础上进行构建。为什么需要为此设置localhosts?为什么需要为此设置localhosts?
firefox http://192.168.167.24/test.php