Apache konfigurieren
# navigate to apache config cd /usr/local/zend/apache2/conf # open httpd.conf sudo nano httpd.conf
Apache httpd.conf bearbeiten
# add new port to Listen section (near beginning of file) Listen 80 # import vhost config (remove hashtag, near end of file) Include conf/extra/httpd-vhosts.conf
Apache httpd-vhosts.conf basic
# # Virtual Hosts # # If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Most configurations # use only name-based virtual hosts so the server doesn't need to worry about # IP addresses. This is indicated by the asterisks in the directives below. # # Please see the documentation at # <URL:http://httpd.apache.org/docs/2.2/vhosts/> # for further details before you try to setup virtual hosts. # # You may use the command line option '-S' to verify your virtual host # configuration. # # Use name-based virtual hosting. # #NameVirtualHost *:10088 NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot "/Users/atreju/Sites/folder" ServerName i18nl10n.local <Directory /Users/atreju/Sites/folder> DirectoryIndex index.php index.html AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>