Searx, Uwsgi und Apache Vhost.conf

renek

New Member
Moin,

vlt kann mir hier jmd weiterhelfen.

Habe nen VPS bei HE. Ubuntu 12.04 und Plesk 12 (mit 'nem Apachen).

Heute morgen habe ich mir die Searx Suchmaschine installiert die auch via Localhost tadellos läuft ... allerdings bekomme ich Apachen nicht dazu überredet von extern (Sprich Domain/Unterordner darauf zu verweisen.

Ich habe in der
Code:
/var/www/vhosts/system/{DOMAIN-NAME}/conf/vhost.conf
folgenden Code eingefügt:
Code:
<Location "/var/www/vhosts/{DOMAIN_NAME}/{HTDOCS_ROOT}/{UNTERORDNER}/">
	Options FollowSymLinks Indexes
	SetHandler uwsgi-handler
	uWSGISocket /run/uwsgi/app/searx/socket
</Location>

Dennoch kommt hier immer nur eine Plesk-Default-Seite.:mad::mad::mad:

Hat jmd vielleicht eine Idee ?
 
Zeig doch bitte mal den kompletten vHost. Wenn du das wirklich irgendwo nur als Zusatz eingefügt hast, möchte ich mit einiger Sicherheit vermuten, dass das noch nicht ganz reicht... :) Eine Location-Direktive allein macht dich noch nicht glücklich.
 
Ich denke was du suchst ist Directory und nicht Location. Ersteres beschreibt einen lokalen Pfad wärend Location den URL-Pfad beschreibt.

<Directory "/var/www/vhosts/{DOMAIN_NAME}/{HTDOCS_ROOT}/{UNTERORDNER}/">

<Location /{UNTERORDNER}>
 
Last edited by a moderator:
:(

@MadMakz: hat leider mit Directory auch nicht geklappt.

Hier noch einmal meine komplette httpd.conf für die Domain:
Code:
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
#IF YOU REQUIRE TO APPLY CUSTOM MODIFICATIONS, PERFORM THEM IN THE FOLLOWING FILES:
#/var/www/vhosts/system/{MEINE_DOMAIN}/conf/vhost.conf
#/var/www/vhosts/system/{MEINE_DOMAIN}/conf/vhost_ssl.conf
<IfModule mod_ssl.c>

    <VirtualHost {MEINE_IP}:443 >
        ServerName "{MEINE_DOMAIN}:443"
        ServerAlias "www.{MEINE_DOMAIN}"
        ServerAlias "ipv4.{MEINE_DOMAIN}"
        ServerAdmin "rene@{MEINE_DOMAIN}"
        UseCanonicalName Off

        DocumentRoot "/var/www/vhosts/{MEINE_DOMAIN}"
        CustomLog /var/www/vhosts/system/{MEINE_DOMAIN}/logs/access_ssl_log plesklog
        ErrorLog "/var/www/vhosts/system/{MEINE_DOMAIN}/logs/error_log"

        Include /var/www/vhosts/system/{MEINE_DOMAIN}/conf/vhost.conf
        <IfModule mod_suexec.c>
            SuexecUserGroup "rene" "psacln"
        </IfModule>

        <IfModule mod_userdir.c>
            UserDir "/var/www/vhosts/web_users"
        </IfModule>

        <IfModule mod_sysenv.c>
            SetSysEnv PP_VHOST_ID "97300b9c-9fac-4ee0-bafe-0918ee97c905"
        </IfModule>

        ScriptAlias "/cgi-bin/" "/var/www/vhosts/cgi-bin/"

        SSLEngine on
        SSLVerifyClient none
        SSLCertificateFile /opt/psa/var/certificates/cert48bRe4L

        SetEnv PP_CUSTOM_PHP_INI /var/www/vhosts/system/{MEINE_DOMAIN}/etc/php.ini
        SetEnv PP_CUSTOM_PHP_CGI_INDEX module

        <IfModule mod_fcgid.c>
            FcgidInitialEnv PP_CUSTOM_PHP_INI /var/www/vhosts/system/{MEINE_DOMAIN}/etc/php.ini
            FcgidInitialEnv PP_CUSTOM_PHP_CGI_INDEX module
            FcgidMaxRequestLen 134217728
        </IfModule>

        <Directory /var/www/vhosts/{MEINE_DOMAIN}>

            <IfModule mod_perl.c>
                <Files ~ (\.pl$)>
                    SetHandler perl-script
                    PerlHandler ModPerl::Registry
                    Options +ExecCGI
                    allow from all
                    PerlSendHeader On
                </Files>
            </IfModule>
            <IfModule mod_php4.c>
                php_admin_flag engine on

                # General settings
                php_admin_flag safe_mode off
                php_admin_value open_basedir "/var/www/vhosts/:/tmp/"
                # Performance settings
                php_admin_value memory_limit 64M
                php_admin_value post_max_size 16M
                php_admin_value upload_max_filesize 16M
                # Additional directives

            </IfModule>

            <IfModule mod_php5.c>
                php_admin_flag engine on

                # General settings
                php_admin_flag safe_mode off
                php_admin_value open_basedir "/var/www/vhosts/:/tmp/"
                # Performance settings
                php_admin_value memory_limit 64M
                php_admin_value post_max_size 16M
                php_admin_value upload_max_filesize 16M
                # Additional directives

            </IfModule>
            <IfModule mod_python.c>
                <Files ~ (\.py$)>
                    SetHandler python-program
                    PythonHandler mod_python.cgihandler
                </Files>
            </IfModule>
            <IfModule mod_fcgid.c>
                <Files ~ (\.fcgi$)>
                    SetHandler fcgid-script
                    Options +ExecCGI
                </Files>
            </IfModule>

            SSLRequireSSL

            Options -Includes +ExecCGI

        </Directory>

        <Directory /var/www/vhosts/web_users>

            <IfModule mod_php4.c>
                php_admin_flag engine off
            </IfModule>

            <IfModule mod_php5.c>
                php_admin_flag engine off
            </IfModule>

        </Directory>

        <Directory /var/www/vhosts/{MEINE_DOMAIN}>
            Options +FollowSymLinks
        </Directory>

        <Directory "/var/www/vhosts/system/{MEINE_DOMAIN}/statistics">
            AuthType Basic
            AuthName "Domain statistics"
            AuthUserFile "/var/www/vhosts/system/{MEINE_DOMAIN}/pd/d..httpdocs@plesk-stat"
            require valid-user
        </Directory>

        <IfModule mod_security2.c>
        </IfModule>

    </VirtualHost>

</IfModule>

<VirtualHost {MEINE_IP}:80 >
    ServerName "{MEINE_DOMAIN}:80"
    ServerAlias "www.{MEINE_DOMAIN}"
    ServerAlias "ipv4.{MEINE_DOMAIN}"
    ServerAdmin "rene@{MEINE_DOMAIN}"
    UseCanonicalName Off

    DocumentRoot "/var/www/vhosts/{MEINE_DOMAIN}"
    CustomLog /var/www/vhosts/system/{MEINE_DOMAIN}/logs/access_log plesklog
    ErrorLog "/var/www/vhosts/system/{MEINE_DOMAIN}/logs/error_log"

    <IfModule mod_suexec.c>
        SuexecUserGroup "rene" "psacln"
    </IfModule>

    <IfModule mod_userdir.c>
        UserDir "/var/www/vhosts/web_users"
    </IfModule>

    <IfModule mod_sysenv.c>
        SetSysEnv PP_VHOST_ID "97300b9c-9fac-4ee0-bafe-0918ee97c905"
    </IfModule>

    ScriptAlias "/cgi-bin/" "/var/www/vhosts/cgi-bin/"

    <IfModule mod_ssl.c>
        SSLEngine off
    </IfModule>

    SetEnv PP_CUSTOM_PHP_INI /var/www/vhosts/system/{MEINE_DOMAIN}/etc/php.ini
    SetEnv PP_CUSTOM_PHP_CGI_INDEX module

    <IfModule mod_fcgid.c>
        FcgidInitialEnv PP_CUSTOM_PHP_INI /var/www/vhosts/system/{MEINE_DOMAIN}/etc/php.ini
        FcgidInitialEnv PP_CUSTOM_PHP_CGI_INDEX module
        FcgidMaxRequestLen 134217728
    </IfModule>

    <Directory /var/www/vhosts/{MEINE_DOMAIN}>

        <IfModule mod_perl.c>
            <Files ~ (\.pl$)>
                SetHandler perl-script
                PerlHandler ModPerl::Registry
                Options +ExecCGI
                allow from all
                PerlSendHeader On
            </Files>
        </IfModule>
        <IfModule mod_php4.c>
            php_admin_flag engine on

            # General settings
            php_admin_flag safe_mode off
            php_admin_value open_basedir "/var/www/vhosts/:/tmp/"
            # Performance settings
            php_admin_value memory_limit 64M
            php_admin_value post_max_size 16M
            php_admin_value upload_max_filesize 16M
            # Additional directives

        </IfModule>

        <IfModule mod_php5.c>
            php_admin_flag engine on

            # General settings
            php_admin_flag safe_mode off
            php_admin_value open_basedir "/var/www/vhosts/:/tmp/"
            # Performance settings
            php_admin_value memory_limit 64M
            php_admin_value post_max_size 16M
            php_admin_value upload_max_filesize 16M
            # Additional directives

        </IfModule>
        <IfModule mod_python.c>
            <Files ~ (\.py$)>
                SetHandler python-program
                PythonHandler mod_python.cgihandler
            </Files>
        </IfModule>
        <IfModule mod_fcgid.c>
            <Files ~ (\.fcgi$)>
                SetHandler fcgid-script
                Options +ExecCGI
            </Files>
        </IfModule>

        Options -Includes +ExecCGI

    </Directory>

    <Directory /var/www/vhosts/web_users>

        <IfModule mod_php4.c>
            php_admin_flag engine off
        </IfModule>

        <IfModule mod_php5.c>
            php_admin_flag engine off
        </IfModule>

    </Directory>

    <Directory /var/www/vhosts/{MEINE_DOMAIN}>
        Options +FollowSymLinks
    </Directory>

    <Directory "/var/www/vhosts/system/{MEINE_DOMAIN}/statistics">
        AuthType Basic
        AuthName "Domain statistics"
        AuthUserFile "/var/www/vhosts/system/{MEINE_DOMAIN}/pd/d..httpdocs@plesk-stat"
        require valid-user
    </Directory>

    <IfModule mod_security2.c>
    </IfModule>

</VirtualHost>
 
Plesk

Die httpd.conf soll mal bei Plesk auch nicht anfassen, da sie automatisch generiert werden:

Code:
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
#IF YOU REQUIRE TO APPLY CUSTOM MODIFICATIONS, PERFORM THEM IN THE FOLLOWING FILES:
#/var/www/vhosts/system/{MEINE_DOMAIN}/conf/vhost.conf
#/var/www/vhosts/system/{MEINE_DOMAIN}/conf/vhost_ssl.conf

Deswegen liegt der oben stehende Code auch in der seperaten vhost.conf.
 
Back
Top