من این کد رو توی کانفیگ زمپ دارم <VirtualHost *:222> DocumentRoot "G:/TabibanNew/Front/"…
- User
من این کد رو توی کانفیگ زمپ دارم
<VirtualHost *:222> DocumentRoot "G:/Tabiban_New/Front/" ServerName localhost # ServerAlias tabiban.bitobyteshop.ir
DirectoryIndex index.html # RewriteEngine On # Redirect from root to /home # RewriteCond %{REQUEST_URI} ^/$ # RewriteRule ^(.*)$ /index.html [L,R=301] # دسترسی به /home # <Location /home> # ProxyPass http://127.0.0.1:2222/home # ProxyPassReverse http://127.0.0.1:2222/home # </Location> <Location /account> ProxyPass http://127.0.0.1:2222/account ProxyPassReverse http://127.0.0.1:2222/account </Location> <Location /doctor> ProxyPass http://127.0.0.1:2222/doctor ProxyPassReverse http://127.0.0.1:2222/doctor </Location> <Location /healthFile> ProxyPass http://127.0.0.1:2222/healthFile ProxyPassReverse http://127.0.0.1:2222/healthFile </Location> <Location /medicalCenters> ProxyPass http://127.0.0.1:2222/medicalCenters ProxyPassReverse http://127.0.0.1:2222/medicalCenters </Location> <Location /TakingTurns> ProxyPass http://127.0.0.1:2222/TakingTurns ProxyPassReverse http://127.0.0.1:2222/TakingTurns </Location> # دسترسی به فایلهای استاتیک Alias /static/ "G:/Tabiban_New/Back/Site/static/" <Directory "G:/Tabiban_New/Back/Site/static"> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> # دسترسی به /tabiban <Directory "G:/Tabiban_New/Front/"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Require all granted </Directory>الان میخوام هر وقت ایپی سرور با پورت 222 صدا زده شد نره روی home و به جاش بره روی index.html
- Assistant
برای اینکه وقتی IP سرور با پورت 222 فراخوانی شد، به جای اینکه به
/homeبرود، بهindex.htmlمنتقل شود، باید تغییرات زیر را در کانفیگ اضافه کنید. شما میتوانید از پیکربندی rewrite استفاده کنید که در قسمت کامنت شده است. - User
همچنان وارد home میشه
- Assistant