Downloading a file from the server using Symfony 3 - symfony

I'm having error 404 when I try to get a file from the server. The folder I have is inside the folder / web /, but when I click on the link https: // my_site_name / web / my_folder_file, error 404 appears. What am I doing wrong?

Related

403 Error. Forbidden while try to login WordPress admin

I am facing 403 Forbidden error while try to login into Wp-admin. Tried 4 steps already. 1)Change file and folder permission 2)change Plugin folder name 3)delete and upload .htacsses file.
still facing same error.

I get a 404 NOT FOUND error when trying to use a ngrok server

I'm currently using webstorm to program my webpage and when I open it through Google chrome and host it locally, the url the browser uses is
http://localhost:63342/assignment2/statichtmlpage-edit.html?_ijt=nqejipcmjnaun1b1416leu6a2i
When I open Terminal in order to host it on ngrok, I type in ./ngrok http 63342
and then a window opens with the ngrok url that I can use
but when I go to that URL (http://4038e733.ngrok.io) all I get is a 404 NOT FOUND error.
I'm not sure why this is happening, any help would be appreciated
Access your page with the full URL:
http://4038e733.ngrok.io/assignment2/statichtmlpage-edit.html?_ijt=nqejipcmjnaun1b1416leu6a2i
Add your path to web (.html) files after the http://4038e733.ngrok.io/ page.
You were hosting from the root directory http://localhost:63342/, but forgot to point to a file. So as expected, the error:
GET / 404 Not Found
Is saying there is no file at the root directory.
I'd imagine the fix for most users is to append /index.html to the end of their ngrok link:
http://ngrok.io/ ... /index.html

Asp.net mvc routing 404 - File or directory not found

I define a route in RouteConfig for new url like this http://itface.ir/home/detail/439/Newtech,
"New tech" is subject and sometimes it has to be in another language like Persian , it works correctly on localhost but after deploying the below url I get the following error :
http://itface.ir/home/detail/439/سلام
Error 404 - File or directory not found.
I search for it but did not find any answer

Symfony2 on nginx shared hosting

i've a symfony 2.3.16 project which work great on localhost.
But today i wanted to host it on my remote server : its a shared hosting on nginx 1.4.7
i've changed the public folder (from /web to /public_html : still working great on localhost)
i've cleared then deleted the dev and prod cache,
added my remote IP to app_dev.php and activate the debuger in app.php
and then uploaded all files to my shared hosting.
the tree is like this :
app
bin
public_html
- bundles
- app.php
- app_dev.php
- config.php
- .htaccess
src
vendor
and when i try to access some pages, i've always ended with a 404 Not Found error.
here, you can see : http://dojonantais.cwebh.org/app.php/admin/
i have no route defined for /
my app/config/routing.yml is like this :
dnAdmin:
resource: "#dnAdminBundle/Resources/config/routing.yml"
prefix: /admin
also, when i try dev environnement http://dojonantais.cwebh.org/app_dev.php
it says there is no route for /, which is logic, but i've another error with the debug bar :
An error occurred while loading the web debug toolbar (404: Not Found).
Do you want to open the profiler?
and when i open the profiler : 404 not found
again, i can access the config.php and it says my server is ok to run Symfony, but cant access the configurator (404 error)
So, what is missing?
Thanks again.
So, problems coming from my remote host on nginx.
i change the host to a 1and1 server and all is ok.

how to set virtual path to go above root directory, asp.net

I am trying to set the virtual path in ASP.NET to go above root directory as follows -
RouteTable.Routes.MapPageRoute("Test", "test/page", #"~\~\Test\TestPages.aspx");
But i am getting the below error -
The resource cannot be found. Http 404.
The TestPages.aspx is one level up compared to Root directory.
Also i have tried - ~..\TestPages.aspx - gives error - Cannot use a leading .. to exit above the top directory
Any help much appreciated.

Resources