우분투 11과 Apache2를 실행하는 Linode 서버가 있는데 하위 도메인을 작동 시키려고합니다. 내 mywebsite
파일이 sites-available
폴더입니다. 나는 그것의 자신의 파일 testing.mywebsite
에 꼭대기 부분을 두는 것을 시도하고 운 없음으로 apache2를 다시 적재했다.Apache2 - 하위 도메인 추가시 문제가 발생했습니다.
<VirtualHost *:80>
DocumentRoot /home/user2/www
ServerName testing.mywebsite.com
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName mywebsite.com
ServerAlias *.mywebsite.com
ServerAlias 192.155.90.135
#Index file and Document Root (where the public files are located)
DirectoryIndex index.html index.php
DocumentRoot /home/user/public/mywebsite/www
#Log file locations
LogLevel warn
ErrorLog /home/user/public/mywebsite/log/error.log
CustomLog /home/user/public/mywebsite/log/access.log combined
</VirtualHost>
나는 웹 사이트를 위로 가지고 실행하고 아파치 /home/user/public/mywebsite/www
에있는 모든 파일을 찾을 수 있지만 내가 테스트 하위 도메인에 갈 때, 내 브라우저를 찾을 수 없습니다. 나는 apache2에 익숙하지 않으므로 도움을 얻을 수 있습니다. 감사.
나는/etc/hosts에서 어떤 것도 덮어 쓰지는 않지만 Linode 웹 사이트에서 DNS를 관리한다는 사실을 잊어 버렸습니다. 새로운 A 레코드를 설정 했으므로 문제가 해결 될 것으로 기대됩니다. 감사. – funayman