What is the mac equivalent of “/etc/apache2/sites-available”?

后端 未结 5 1554
忘掉有多难
忘掉有多难 2021-01-04 12:33

I am installing Koha from source. Generic unix directions indicate the following step after sudo make install

sudo ln -s /etc/koha/koha-httpd.conf /etc/apache         


        
相关标签:
5条回答
  • 2021-01-04 13:03

    Please note that ServerRoot specifies where the subdirectories conf and logs can be found.

    In my httpd.conf, it is set to /usr

    0 讨论(0)
  • Andrew's answer is correct. On my install, I additionally had to change

    Order allow,deny
    Deny from all
    

    to

    Order allow,deny
    Allow from all
    

    in /etc/apache2/httpd.conf.

    The fact that you're getting a server at :8080 indicates that you may be running a different apache config from the base system install, such as MAMP; I don't believe that apache by default listens on :8080.

    0 讨论(0)
  • 2021-01-04 13:10

    It looks like /private/etc/apache2/other/ would be the approximately corresponding folder. /etc/apache2/httpd.conf contains a directive Include /private/etc/apache2/other/*.conf that includes all files in that folder, much like the sites-available folder common on Linux installations of Apache.

    0 讨论(0)
  • 2021-01-04 13:18

    Run apachectl -S which is shorthand for apachectl -t -D DUMP_VHOSTS

    According to the apachectl man file, this will show parsed settings (currently only vhost settings). Incidentally, it also checks your config file for errors.

    0 讨论(0)
  • 2021-01-04 13:18

    I had this problem too. It seems to occour because the default version of apache that is installed on osx over-rides other versions. to disable it go to "System Preferences > Sharing" and untick "web sharing".

    good luck!

    0 讨论(0)
提交回复
热议问题