請問一下將godaddy申請的domain對應到我的ip的設定
我在godaddy.com申請了一個domain,
而我用seednet ADSL 固定ip,ubuntu linux架了www server
但是我沒有要自己架設DNS server
我只想要將我申請的domain(假設是aaa.com)對應到我的ip。
然後我還想設定apache的virtual host
希望[url]www.aaa.com對應到[/url] [url]http://我的ip/[/url]
a.aaa.com對應到 [url]http://我的ip/a/[/url]
這樣我要怎麼設定呢?
我到godaddy我的帳號,然後選manage domains
,然後選set nameserver
選Default Hosting Name Servers
按下save change
接著在 Filter Domain List點選我唯一買的那個網址,
按下後,右邊就出現Domain Details
然後我選Total DNS Control
再選Total DNS Control And MX Records進去Launch Total DNS Control Manager ,
這時候就跳出來一個DNS manager的新視窗,
我把A (Host)的@ 設定 points to 我的IP
然後儲存,這樣就對了嗎
但是我輸入 [url]http://www.aaa.com時會出現[/url]
This page is parked free, courtesy of GoDaddy.com
而我輸入 [url]http://a.aaa.com[/url]
會出現找不到伺服器
不知道哪裡設錯了呢
Default Hosting Name Servers和Default Parked Name Servers有什麼不同呢?
謝謝
回覆: 請問一下將godaddy申請的domain對應到我的ip的設定
現在 [url]http://www.aaa.com[/url] OK了
不過我的 [url]http://a.aaa.com[/url]
還是會出現找不到伺服器
請問一下我是不是要設定CNAME才能對應這個virtual host呢
謝謝
回覆: 請問一下將godaddy申請的domain對應到我的ip的設定
[QUOTE=raycherng]現在 [url]http://www.aaa.com[/url] OK了
不過我的 [url]http://a.aaa.com[/url]
還是會出現找不到伺服器
請問一下我是不是要設定CNAME才能對應這個virtual host呢
謝謝[/QUOTE]
現在可以了
不過不知道是不是我設定CNAME的關係
希望有看到這個post的先進還是幫我解答一下
謝謝
剩下的問題是我virtual host的問題:
現在[url]http://a.aaa.com可以進去了[/url]
我架的是phpBB
不過一定要[url]http://a.aaa.com/index.php才能進入[/url]
如果只輸入[url]http://a.aaa.com/就不行[/url]
會直接進到[url]http://a.aaa.com/apache2-default/,然後跟我說[/url]
Not Found
The requested URL /apache2-default/ was not found on this server.
不知道那裡設定有問題
[url]http://www.aaa.com就可以直接進到http://www.aaa.com/index.php[/url]
這個virtual host的設定要怎麼設,才會讓browser沒有指定檔案時
自動指向index.htm,index.html或是index.php
不知道這個問題問在這裡對不對
還是要問在架站DIY版呢?
謝謝
回覆: 請問一下將godaddy申請的domain對應到我的ip的設定
我解決了
我之前把
RedirectMatch ^/$ /apache2-default/
uncomment掉
現在在加上井字號就好了
不過我還是不大清楚為什麼
還是把我的設定出來給大家看
<VirtualHost *>
ServerName a.aaa.com
ServerAdmin webmaster@localhost.
ServerAlias [url]www.a.aaa.com[/url]
DocumentRoot /var/www/a/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/a/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# Uncomment this directive is you want to see apache2's
# default start page (in /apache2-default) when you go to /
RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
請大家幫我看看
謝謝