Keep your vhost in /Applications/MAMP/conf/apache/extra/nf just the same. Open /Applications/MAMP/conf/apache/nf and uncomment Include /Applications/MAMP/conf/apache/extra/nf. $ cp server.key /Applications/MAMP/conf/apache $ cp server.crt /Applications/MAMP/conf/apache # Move the certificate into your MAMP apache configuration folder $ openssl rsa -in server.tmp -out server.key # remove the password from the server key $ openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt Organizational Unit Name (eg, section) : DevelopmentĬommon Name (eg, YOUR name) : localhostĮmail Address : challenge password : # leave this emptyĪn optional company name : # leave this empty Organization Name (eg, company) : Your Company State or Province Name (full name) : Quebec $ openssl req -new -key server.key -out server.csr # generate certificate signing request (same password as above) $ openssl genrsa -des3 -out server.key 1024 # generate a private key (will request a password twice) Generate a (dummy) SSL Certificate $ cd ~ īackup your /Applications/MAMP/conf/ dir. Well, that's copy that here just in case. Now comes the easy part, you just have to follow what this guy wrote here. Just go to MAMP > Preferences > Ports Tab and click the Set to default Apache and MySQL ports. Now you should be able to use port 80 (and almost any other) in MAMP. $ launchctl unload -w /System/Library/LaunchDaemons/ $ launchctl load -w /System/Library/LaunchDaemons/ If you don't see MAMP, you are in good hands, I have just the thing for you: # I've forced the removal of the job Before with adventure check if it isn't MAMP itself (yeah, you should close that beforehand) ps If you do happen to have any process with something like this *:http (LISTEN), you are in trouble. You can check it like this: sudo lsof | grep LISTEN This is a "heat check" if you don't have any process jamming http ports. First of all you need to be able to run MAMP in port 80.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |