Mẹo vặt Sói's Tutorials Web

[Note] Trỏ domain về lớp mạng sau NAT (multi VPS, multi local IP)

VPS A file vhost

<VirtualHost *:80> ServerName bbb.xyz SetEnv NS_ENV variable_value ProxyPass / http://bbb.xyz/ ProxyPassReverse / http://bbb.xyz/ </VirtualHost>
file host
b.b.b.b bbb.xyz

VPS B

file vhost
NameVirtualHost *:80 <Directory “D:/WebData/”> AllowOverride All Order Deny,Allow Allow from all </Directory> <VirtualHost *:80> DocumentRoot “D:/bbb.xyz/” ServerName bbb.xyz ErrorLog “logs/bbb.xyz-error.log” CustomLog “logs/bbb.xyz-access.log” combined <Directory “D:/bbb.xyz/”> # AllowOverride All # Deprecated # Order Allow,Deny # Deprecated Allow from all # Deprecated # –New way of doing it Require all granted </Directory> </VirtualHost>
Vậy là OK^^ -soiqualang_chentreu-]]>

1 thought on “[Note] Trỏ domain về lớp mạng sau NAT (multi VPS, multi local IP)

Leave a Reply

Your email address will not be published. Required fields are marked *