obsidian/笔记文件/2.笔记/Apache服务器配置和使用.md
2025-03-26 00:02:56 +08:00

1.9 KiB
Raw Permalink Blame History

#unity/日常积累

解压这个压缩包,到一个文件夹

!Pasted image 20231226140914.png

!Pasted image 20231226140940.png

打开这个目录的配置文件

!Pasted image 20231226141022.png

第39行修改成对应路径注意 \ 要换成 /

!Pasted image 20231226141155.png

67行默认是80端口不用修改

!Pasted image 20231226141459.png

来到bin文件夹

!Pasted image 20231226141527.png

运行可执行文件

!Pasted image 20231226141552.png

会提示443端口被占用无法运行服务

!Pasted image 20231226141619.png

输入这个指令,可以查端口占用

netstat -ano | findstr 443

!Pasted image 20231226141728.png

来到这个文件夹,打开这个配置 httpd-ahssl.conf

!Pasted image 20231226141819.png

第18行修改一下监听端口例如442

!Pasted image 20231226141843.png

因为输入指令可以看到442端口没有被占用

!Pasted image 20231226141916.png

保存修改,重新运行服务,正常了

!Pasted image 20231226141953.png

地址栏输入,页面正常打开

localhost

!Pasted image 20231226142025.png

后续文件需要放在这个htdocs文件夹才可以通过链接访问这个文件夹也是在 httpd-ahssl.conf配置文件写好的

!Pasted image 20231226160952.png

!Pasted image 20231226161123.png

服务器xml结构参考

<?xml version="1.0" encoding="utf-8"?>
<ServerInfo>
	<GameVersion Version="0.1">
		<Pathces Version="1">
		  <Files Name="StandaloneWindows64" Url="http://127.0.0.1/AssetBundle/0.1/1/StandaloneWindows64" Platform="StandaloneWindows64" Md5="f7432abdce892138b8fea07ab71ec5fb" Size="1.83789063" />
		  <Files Name="ugui" Url="http://127.0.0.1/AssetBundle/0.1/1/ugui" Platform="StandaloneWindows64" Md5="d4e502d2c3d8b026d85d02e674c151a6" Size="192.900391" />
		</Pathces>
	</GameVersion>
</ServerInfo>