[英]Apache2 VirtualHost no domain
I need help to set up my VirtualHost settings. 我需要帮助来设置我的VirtualHost设置。 My idea is it to run some applications and other stuff on my server (IP "123.456.789" I don't have a domain yet). 我的想法是在服务器上运行某些应用程序和其他内容(IP“ 123.456.789”我还没有域)。 Therefore I wanna call my apps / sites like this: 因此,我想这样称呼我的应用程序/网站:
List item 项目清单
and so on. 等等。
I don't know how I can accomplish my goal with the VirtualHost... 我不知道如何使用VirtualHost实现我的目标...
I would be very grateful for any help and examples. 我将非常感谢您提供的帮助和示例。
I think what you need is the Alias directive: 我认为您需要的是Alias指令:
Alias /app1 /path/to/your/app1
<Directory "/path/to/your/app1">
Order allow,deny
Allow from All
# you can put any other directives/options here
</Directory>
You can put this inside any VirtualHost tag you have, and you can have as many Alias declarations as you need, just be careful not to use duplicate aliases. 您可以将其放在您拥有的任何VirtualHost标记中,并且可以根据需要具有任意数量的Alias声明,只是要注意不要使用重复的别名。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.