Category : nginx

I have taken a project builded with Laravel 4.2 and PHP 5.6.

 And have mounted the server with Docker. The server uses Nginx, certificates from Let’s Encrypt with Certbot. These are the configuration files of the Nginx: nginx.conf
 server { index index.php index.html; error_log /var/log/nginx/error.log; access_log /var/log/nginx/access.log; root /var/www/public; server_name example.com.py www.example.com.py; location ~ .php$ ..

Read more

I am trying to run Laracvel-echo. Host configuration: location /socket.io { proxy_pass http://127.0.0.1:6002/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header Host $host; } I catch headers with Socat: socat -v TCP-LISTEN:6002,fork TCP:127.0.0.1:6001 On my DEV server, I see that everything is ok, the protocol is changing (HTTP/1.1 101 Switching Protocols): 2020/10/22 13:51:36.147102 length=175 ..

Read more

General scheme and project configuration files The project consists of two parts: Server part – Laravel (api) Customer part – NuxtJs (client) A minimum project configuration has been prepared for the test: Laravel Websockets packages have been installed: beyondcode/laravel-websockets: https://beyondco.de/docs/laravel-websockets/getting-started/introduction pusher/pusher-php-server: https://pusher.com/tutorials/web-notifications-laravel-pusher-channels File composer.json: … "require": { "php": "^7.3", "beyondcode/laravel-websockets": "^1.8", "fideloper/proxy": "^4.2", "fruitcake/laravel-cors": "^2.0", ..

Read more

I have deployed a laravel project using Envoyer for continuous deployment, except we continually run into issues with the permissions of the storage folder reverting to old or redundant permissions. How do i ensure that the permissions i have set stick? Permsissions for the Project directory are as follows: Base folder drwxrwxr-x 5 ubuntu www-data ..

Read more

When I visit /admin I have a static file, but the file is in the directory above, /admin, so i get a 404. On local this works fine and finds the file, is there a way to do this? <link rel="stylesheet" type="text/css" href="http://homestead.test/resources/orchid/css/orchid.css?id=01005b7515df1f41ec1f"> Actual file path homestead.test/admin/resources/orchid/css/orchid.css?id=01005b7515df1f41ec1f" Nginx Config server { listen 443 ssl http2; ..

Read more

I am building a docker collection that will eventually have the following containers (and more) web (nginx) proxy (reverse proxy nginx) php-fpm the web will have the allowance for several frameworks to be added via folders and subfolders ./folder1/folder2/codeigniter ./folder3/folder4/laravel the folders for codeigniter and laravel are symlinks to a public folder the index.php page ..

Read more

I’m trying to serve a new Laravel app with Nginx but when I navigate to my domain, all I get is a file called "download" which downloads automatically. No Laravel app is being served. Here’s my server block: server { server_name example.com; listen 443 ssl; listen [::]:443 ssl; ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; include /etc/letsencrypt/options-ssl-nginx.conf; ssl_dhparam ..

Read more

All my laravel routes keep redirecting back to the home page. For example, when I go to domain/foo it stays on the home page, domain/foo shows up in the address bar but I’m still on the home page. I don’t get an error. I’m doubting Nginx configuration, do you have any ideas? # /usr/share/nginx/html/default/routes/web.php Route::get(‘/’, ..

Read more

I have a Laravel app which works fine in my local environment, but not working correctly in nginx server when its host. I have given the permissions correctly for the storage folder. FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ErrorException: is_dir(): open_basedir restriction in effect. File(/web/resources/views/vendor/notifications) is not within the allowed path(s): ..

Read more

I got 3 curl calls in my laravel code $fullNode = new IEXBaseTronAPIProviderHttpProvider(‘http://127.0.0.1:8090’); $solidityNode = new IEXBaseTronAPIProviderHttpProvider(‘http://127.0.0.1:8091’); $client = new EOSPHPEOSClient(‘http://127.0.0.1:8888’); $fullNode and $solidityNode work without any problem. $client gets the following error message: cURL error 7: Failed to connect to 127.0.0.1 port 8888: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) I checked this on my nginx machine: ..

Read more

I have a ubuntu server that runs a stack of docker-compose that includes nginx as the http-server exposing port 8081 and on the host the apache2 is redirecting site.com requests to site.local:8081. The laravel app for example redirects to site.local:8081/home after login, instead I want it to redirect to site.com/home. And I don’t know exactly ..

Read more