ฉันกำลังพยายามกำหนดค่าไฟล์ apache vhosts ของฉันให้มีชื่อโฮสต์ในเครื่องหรือชื่อโฮสต์ "นามแฝง" ฉันกำลังทำงานกับ Google API ในปัจจุบันและพวกเขาไม่ยอมรับนามแฝงที่กำหนดเองเป็น url ดังนั้นฉันจึงไม่สามารถทำให้มันทำงานกับ URL ที่กำหนดเองของฉันได้ มีความคิดที่จะทำอะไร? การกำหนดค่าปัจจุบันของฉันที่ไม่ทำงาน:
<VirtualHost 127.0.0.1:80>
ServerName localhost/go
ServerAlias localhost/go
DocumentRoot "D:/username/Web/server.dev/go"
</VirtualHost>
<Directory "D:/username/Web/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
Require all granted
</Directory>
<VirtualHost *:80>
ServerName api.server.dev
ServerAlias api.server.dev
DocumentRoot "D:/username/Web/server.dev/api"
</VirtualHost>
##... more custom urls with subdomains cut out because it's unnecessary
<VirtualHost *:80>
ServerName adstrck.server.dev
DocumentRoot "D:/username/Web/server.dev/adstrck"
</VirtualHost>
### ALL OTHERS ###
<VirtualHost *:80>
ServerName www.server.dev
ServerAlias server.dev *.server.dev
DocumentRoot D:/username/Web/server.dev
</VirtualHost>
เมื่อฉันพยายามเข้าถึง 127.0.0.1/go หรือ localhost/go ฉันได้รับข้อผิดพลาดเซิร์ฟเวอร์ภายใน
/
ในชื่อโฮสต์ได้ - person Chris Lear   schedule 10.09.2018