Apache WSGI python需要重启

时间:2015-07-28 12:17:37

标签: python linux apache ubuntu

我已经设置了一个Apache服务器来运行python应用程序 我已经在站点中设置了一个VirtualHost(端口8080),并在其上运行了a2ensite 在我的项目中创建了.wsgi文件 重新启动服务器,现在一切正常。

服务器需要编写一些文件,项目位于/ home / user / folder

问题是,当我重新启动服务器时,我可以访问链接(/ test)并且它可以工作,但是当我尝试访问(/ generate)时,不会创建文件。

我认为权限存在问题?
你能帮我解决一下吗?

可用网站

Listen 8080
<VirtualHost *:8080>
    ServerName localhost
    ServerAdmin webmaster@example.com
    WSGIDaemonProcess FlaskApp user=www-data group=www-data threads=5
    WSGIScriptAlias / /home/pdfuser/pdf/node_transform/hello.wsgi
    <Directory /home/pdfuser/pdf/node_transform/>
            Options FollowSymLinks
            AllowOverride None
            Allow from all
    </Directory>
    Alias /static /home/pdfuser/pdf/node_transform/static
    <Directory /home/pdfuser/pdf/node_transform/static/>
            Options Indexes FollowSymLinks MultiViews
            Order allow,deny
            Allow from all
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    LogLevel warn
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

0 个答案:

没有答案