开发者

Use localhost domain name FQDN for local web project. Did I need to config my Windows DNS?

My local Apache service is running perfectly fine. I am running WAMP.

I am trying to configure my .httpd file so that I can access specific projects as fully qualified domain names like: mysite.com ( but resolves to something like localhost/myfoldername/).

I was able to get it working with a different port number like:

localhost:8080

And localhost:80 is my root web dir.

Here is my current .httpd config:

listening: 80 (defined higher in the .httpd)

.... below was added to my .httpd

NameVirtualHost 127.0.0.1:8080

Listen 127.0.0.1:8080

<VirtualHost 127.0.0.1:8080>

ServerName www.jobeet.com

DocumentRoot "C:\wamp\www\symfony\jobeet\web"
  DirectoryIndex index.php
  <Directory "C:\wamp\www\symfony\jobeet\web">
    AllowOverride All
    Allow from All
  </Directory>

  Alias /sf C:\wamp\www\symfony\jobeet\lib\vendor\symfony-1.4.8\data\web\sf
  <Directory "C:\wamp\www\symfony\jobeet\lib\vendor\symfony-1.4.8\data\web\sf">
    AllowOverride All
    Allow from All
  </Directory>
</VirtualHost>

And here is my Windows host file config:

127.0.0.1       localhost
127.0.0.1:8080  www.jobeet.com.local开发者_JAVA百科host

If anyone has any ideas, please tell me! I've been on this for over 8 hours : ( thx.


Have you try this:

127.0.0.1  www.jobeet.com
127.0.0.1  jobeet.com

and you use this in your browser:

http://www.jobeet.com:8080
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜