去/etc/httpd.conf uncomment 這句
NameVirtualHost *:80
service httpd restart
去/etc/httpd.conf uncomment 這句
NameVirtualHost *:80
service httpd restart
sudo a2enmod headers
Restart apache
/etc/init.d/apache2 restart
httpd.conf
Header always append X-Frame-Options SAMEORIGIN
or
Header always append X-Frame-Options DENY
/etc/init.d/apache2 restart
Firstly, install the pear
sudo apt-get install php-pear
Install apigen
pear config-set auto_discover 1 pear install pear.apigen.org/apigen
generate the doc
go to the target "web system" folder
apigen --source . --destination docs/apigen --todo yes \ --title "the api title" --php no
Recent Comments