Καλησπέρα ,
προσπαθώ να κάνω deploy μια web based εφαρμογή γραμμένη σε django. Το πρόβλημα είναι πως δεν φορτώνει τα .css και στο error log έχω 404 NOT FOUND .
To virtual host configuration είναι :
Έχετε καμιά ιδέα ?Κώδικας:<VirtualHost *:80> ProxyPreserveHost On ServerName localhost.localdomain Alias /static /opt/netbox/netbox/static # Needed to allow token-based API authentication WSGIPassAuthorization on <Directory /opt/netbox/netbox/static> Options Indexes FollowSymLinks MultiViews AllowOverride None Require all granted </Directory> <Location /static> ProxyPass ! </Location> ProxyPass / http://127.0.0.1:8001/ ProxyPassReverse / http://127.0.0.1:8001/ </VirtualHost>
Ευχαριστώ
Εμφάνιση 1-8 από 8
-
27-10-18, 19:39 Αpache και Static Content #1
Τελευταία επεξεργασία από το μέλος JohnF : 27-10-18 στις 20:15.
-
27-10-18, 21:54 Απάντηση: Αpache και Static Content #2
Ποιος ο λογος υπαρξης του proxypass? αν τον βγαλεις δουλευει? Το περιεχομενο ειναι στο /opt/netbox/static ?
-
27-10-18, 21:59 Απάντηση: Αpache και Static Content #3
Kαλησπέρα και σε ευχαριστώ για την απάντηση. Εαν βγάλω το proxypass δεν ανοίγει καθόλου η σελίδα . Το περιεχόμενο υπάρχει στο directory που έχω ορίσει στο alias και έχω και full rights (read,write,execute) σε αυτό .
Η αλήθεια είναι πως δεν είμαι ιδιαίτερα σχετικός με Apache και web apps . Ακολούθησα τα βήματα σε ένα tutorial . Aντιμετώπισα διάφορα θέματα τα οποία έλυσα και το έφτασα στο σημείο να ανοίγει η σελίδα αλλά να μην φορτώνει τα css. Nα σημειώσω πως το mod_alias του apache το έχω ενεργοποιημένω όπως και το mod_proxy
-
27-10-18, 22:55 Re: Απάντηση: Αpache και Static Content #4
Ο proxy πρεπει να εχει και αυτος καποιο configuration. Εκει πρεπει να ειναι το προβλημα. Σε επιπεδο σκετου web server/apache ολα δειχνουν καλα
https://httpd.apache.org/docs/2.4/ho...rse_proxy.html
Τωρα το τι κανεις με το reverse proxy και γιατι το χρειαζεσαι, θελει περιγραφη και του δικτυακου setup.
-
28-10-18, 12:51 Απάντηση: Re: Απάντηση: Αpache και Static Content #5
Έβγαλα το proxy configuration από το Vhost και χτυπώντας locally την σελίδα συνεχίζει το error 404 και να μην φορτώνει το css
-
28-10-18, 13:03 Απάντηση: Αpache και Static Content #6
Τα modules proxy και proxy_http είναι ενεργοποιημένα ?
Βάλε και ένα log του ApacheThe 3 most dangerous things in the world are a computer technician with a software patch, a programmer with a screwdriver and a customer with an idea....
Εγκατάσταση Ubuntu και Joomla
-
28-10-18, 13:38 Απάντηση: Αpache και Static Content #7
Kαλημέρα ,
Κώδικας:# httpd -M | grep proxy AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message proxy_module (shared) proxy_ajp_module (shared) proxy_balancer_module (shared) proxy_connect_module (shared) proxy_express_module (shared) proxy_fcgi_module (shared) proxy_fdpass_module (shared) proxy_ftp_module (shared) proxy_http_module (shared) proxy_scgi_module (shared) proxy_wstunnel_module (shared)
Κώδικας:# tail /var/log/httpd/access_log 192.168.91.137 - - [28/Oct/2018:11:48:29 +0200] "GET / HTTP/1.1" 403 4897 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0" 192.168.91.137 - - [28/Oct/2018:11:48:30 +0200] "GET /noindex/css/bootstrap.min.css HTTP/1.1" 304 - "http://192.168.91.137/" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0" 192.168.91.137 - - [28/Oct/2018:11:48:30 +0200] "GET /noindex/css/open-sans.css HTTP/1.1" 304 - "http://192.168.91.137/" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0" 192.168.91.137 - - [28/Oct/2018:11:48:30 +0200] "GET /images/apache_pb.gif HTTP/1.1" 200 2326 "http://192.168.91.137/" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0" 192.168.91.137 - - [28/Oct/2018:11:48:30 +0200] "GET /images/poweredby.png HTTP/1.1" 200 3956 "http://192.168.91.137/" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0" 192.168.91.137 - - [28/Oct/2018:11:48:31 +0200] "GET /noindex/css/fonts/Light/OpenSans-Light.woff HTTP/1.1" 404 241 "http://192.168.91.137/noindex/css/open-sans.css" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0" 192.168.91.137 - - [28/Oct/2018:11:48:31 +0200] "GET /noindex/css/fonts/Bold/OpenSans-Bold.woff HTTP/1.1" 404 239 "http://192.168.91.137/noindex/css/open-sans.css" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0" 192.168.91.137 - - [28/Oct/2018:11:48:31 +0200] "GET /noindex/css/fonts/Light/OpenSans-Light.ttf HTTP/1.1" 404 240 "http://192.168.91.137/noindex/css/open-sans.css" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0" 192.168.91.137 - - [28/Oct/2018:11:48:31 +0200] "GET /noindex/css/fonts/Bold/OpenSans-Bold.ttf HTTP/1.1" 404 238 "http://192.168.91.137/noindex/css/open-sans.css" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0" 192.168.91.137 - - [28/Oct/2018:11:48:32 +0200] "GET /favicon.ico HTTP/1.1" 404 209 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
-
28-10-18, 15:06 Re: Απάντηση: Αpache και Static Content #8
Αν δεν υπαρχει directoyr /noindex στο root του vhost πως να παιξει?
Αν δεν υπαρχει θα πρεπει να φτιαξεις το alias.
Παρόμοια Θέματα
-
Χρηση εξοπλισμου Cosmote, bridge & PPPoE Passthrough και static IP
Από Fotis_Greece στο φόρουμ COSMOTE VDSLΜηνύματα: 30Τελευταίο Μήνυμα: 15-09-20, 22:39 -
Static ipv6 cosmote
Από fadasma στο φόρουμ COSMΟΤΕΜηνύματα: 4Τελευταίο Μήνυμα: 17-04-18, 16:51 -
Επιλογή του "user" στο user.static.hol.gr
Από rightpath στο φόρουμ VodafoneΜηνύματα: 0Τελευταίο Μήνυμα: 10-12-17, 13:05
Bookmarks