Last active
December 24, 2015 01:49
-
-
Save biojazzard/6726438 to your computer and use it in GitHub Desktop.
OSX + dropbox + webserver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Usar una carpeta dropbox y que salga por apache, | |
// Tenemos esta jerarquía en OSX | |
// En la raiz de user OSXUSERNAME, tenemos la carpeta dropbox, | |
// en ella creamos Sites y en ella nuestra aplicacion php. | |
~/OSXUSERNAME/dropbox/Sites/little-store.es/ | |
// Lo que queremos es que eso salga por: | |
http://localhost/dropbox/little-store.es/ | |
// En el Finder "ir a la carpeta" o cmd + shift + G | |
// copiar y pegar sin comillas: | |
"/private/etc/apache2/users" | |
// Verás un archivo que se llama como tu usuario OSXUSERNAME.conf | |
// Compartiras conmigo la primera parte, te falta la segunda en la que creamos | |
// el alias con alias_module: | |
DocumentRoot "/Users/OSXUSERNAME/Sites/" | |
<Directory "/Users/OSXUSERNAME/Sites/"> | |
Options Indexes MultiViews +FollowSymlinks | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
</Directory> | |
<IfModule alias_module> | |
Alias /dropbox /Users/OSXUSERNAME/Dropbox/Sites | |
</IfModule> | |
<Directory "/Users/OSXUSERNAME/Dropbox/Sites/"> | |
Options All | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
</Directory> | |
// Sustituye OSXUSERNAME, por tu nombre correcto. | |
// Abrir la terminal | |
// Teclear "sudo apachectl restart" | |
// Meter la contraseña de usuario o superuser. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment