Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
MAMP & virtual hosts on Mac

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
r3dsc0rpi0n



Joined: 20 Apr 2005
Posts: 354
Location: Zagreb

PostPosted: 15.08.2008 19:33    Post subject: MAMP & virtual hosts on Mac Add user to your forum ignore list Reply with quote

Neznam kaj radim krivo ili sam nekaj zaboravio...

Code:

/etc/hosts

127.0.0.1       localhost test.local
255.255.255.255 broadcasthost
::1                    localhost

httpd.conf

NameVirtualHost *

<VirtualHost *>
   DocumentRoot "/Applications/MAMP/htdocs"
   ServerName localhost
</VirtualHost>

<VirtualHost *>
   DocumentRoot "/Applications/MAMP/htdocs/test/"
   ServerName test.local
</VirtualHost>



no u browseru za url test.local mi baca 404 a localhost uredno radi?!

anyone?

_________________
::: Fortis est, qui se vincit ! ::::
Back to top
View user's profile Send private message Send e-mail Visit poster's website Twitter profile
Adrian



Joined: 02 Apr 2004
Posts: 692
Location: Around & about

PostPosted: 15.08.2008 20:43    Post subject: Add user to your forum ignore list Reply with quote

probaj možda ovo svako u svoj red

127.0.0.1 localhost
127.0.0.1 test.local

a umjesto * isto ip

<VirtualHost 127.0.0.1>
ServerName test.local
ErrorLog /Applications/MAMP/logs/test
DocumentRoot "/Applications/MAMP/htdocs/test"
</VirtualHost>

_________________
The quest for certainty blocks the search for meaning. Uncertainty is the very condition to impel a man to unfold his powers.
http://origami.hr
Back to top
View user's profile Send private message Visit poster's website
r3dsc0rpi0n



Joined: 20 Apr 2005
Posts: 354
Location: Zagreb

PostPosted: 15.08.2008 20:58    Post subject: Add user to your forum ignore list Reply with quote

Ista stvar.

Web sharing je isključen, apache port je 80, a mysql port 3306.

Neznam kaj bi još moglo bit.

Čak sam i dnsflush napravio, kako se pisalo po forumima..

_________________
::: Fortis est, qui se vincit ! ::::
Back to top
View user's profile Send private message Send e-mail Visit poster's website Twitter profile
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 15.08.2008 21:16    Post subject: Add user to your forum ignore list Reply with quote

ako koristis skype provjeri da ti nije sjeo na 80

_________________
UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX
Back to top
View user's profile Send private message Visit poster's website
r3dsc0rpi0n



Joined: 20 Apr 2005
Posts: 354
Location: Zagreb

PostPosted: 15.08.2008 21:55    Post subject: Add user to your forum ignore list Reply with quote

Nemam skype.

On traži isključivo index.php izgleda...

u confu je

Code:

DirectoryIndex index.htm index.php


a u testu imam index.htm i neće ga prikazati ni kad imam normalan url /localhost/test/

_________________
::: Fortis est, qui se vincit ! ::::
Back to top
View user's profile Send private message Send e-mail Visit poster's website Twitter profile
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 15.08.2008 22:05    Post subject: Add user to your forum ignore list Reply with quote

Sample /private/etc/hosts:
Code:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##

255.255.255.255   broadcasthost
::1             localhost

127.0.0.1       mi3dot.dev
127.0.0.1       www.mi3dot.dev


Sample httpd.conf
Code:
NameVirtualHost *:80

<VirtualHost *:80>
   ServerName mi3dot.dev
   DocumentRoot "/Users/Username/htdocs/mi3dot.org/public_html"
   ServerAlias www.mi3dot.org
</VirtualHost>

... s time da sam u Preferencesima promjenio u 80 port za Apache.

Lekke koristi MAMP Pro, možeš kod njega provjeriti kako njemu kreira
virtualne hostove.

Tip: Premjesti htdocs folder negdje gdje ti ga nece nova verzija MAMP-a pregaziti.
Iz istog razloga, virtualne hostove možeš izvaditi u poseban file, pa samo pozvati iz
httpd.conf.

_________________
STOP HITTING YOURSELF! | NETIQUETTE | TYPETESTER | Hypertext rulez™ | CREATIVE NIGHTS | ACCOMMODATIONS
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group