How to change the path of the jboss portal url. eg Change url from "http://localhost:8082/portal/portal/myportal/cms" to "http://localhost:8082/portal/myportal/cms". How do i remove that extra "portal" from the url. Thanks in advance.
Just found the solution. It might be useful for beginners like me.
Open the file jboss-web.xml located at "E:\somefolder\jboss-portal-2.7.2\server\default\deploy\jboss-portal.sar\portal-server.war\WEB-INF\jboss-web.xml" and change the <context-root>/portal</context-root> to <context-root>/</context-root>.
For more information go to jboss site
Related
I have set up a Typo3 project and I am using the Bootstrap Kickstart Package extension. So far everything works, but for example the CSS files are not loaded (see screenshot). If I call the paths in Explorer, all files are available. Can someone here help me?
Do you use the .htaccess of TYPO3? You can find it in the typo3_src folder and move it to your root directory. Without it, the timestamps of the files ?12345 will be interpreted wrong.
Seems it could not get a proper path to the assets. Please check your baseUrl and absRefPrefix
in the setup ts. Check property below:
config.baseURL = http://localhost/project/
config.absRefPrefix = project/
Generally, absRefPrefix required in the local server it does not require at the live server.
Second possibility permission issue, please check directory permission.
Hope this helps you!
Greetings!
I apologize if I am not using the right technical terminology, but I am trying to be as clear as possible, I hope my post makes sense.
I have added a local classic ASP website in IIS 7.5
Sites
csr < website
The physical files location: c:\projects\webapps\csr
The URL in the browser: http://localhost:82/orders.asp?.....
My question is: how do I have to change the configuration if I want the website to open in the browser using the following URL: http://localhost:82/csr/orders.asp?....
Thanks.
Change the website's path to c:\projects\webapps. Then http://localhost:82 will point to c:\projects\webapps and http://localhost:82/csr will point to c:\projects\webapps\csr
If you want http://localhost:82 to point to some other folder, that's fine too. Just add a virtual directory to the website, name it "csr" and give it the path c:\projects\webapps\csr, and you'll be able to browse to http://localhost:82/csr.
On Local host,my solution works fine but on server when i deploy ,it gives that file not found error. and the error message is something like this.http://localhost:27375/favicon.ico
I don't have any such file in my application.I tried to create on in the root folder but no luck.any help is highly appreciated
Your favicon.ico file should be in your root directory for the web site.
It looks like your application is still trying to connect to the localhost in order to display the favicon. Are you hard-coding your URL to the favicon with a http://localhost:27275/favico.ico address?
To build on what Internet Engineer said, using ASP.NET, you can use a relative path prefaced with ~ or /. So, you can use ~/favico.ico or /favico.ico in order to reference your icon file.
First check in web server if you can see the file directly in the browser:
http://productionwebsite/favico.ico
If the file is there, now you need to check that the code is using relative paths. Most likely this is coded using absolute paths.
I just installed my django 1.5 app on ec2 and right now the /admin portion of the site doesn't have css. Is there a way that I can configure this?
Just to add to this the css files are located in the following folder:
/usr/local/lib/python2.6/dist-packages/django/contrib/admin/static/admin/css$
How did you configure it? For admin app to load static files, you need to create a symbolic link inside your app's static directory. Have you done this?
ls -l should give something like:
admin -> /usr/local/lib/python2.6/dist-packages/django/contrib/admin/media
I had exactly the same problem and I think I figured it out how to solve it. Actually it's not that hard. All you need to modify is your settings.py(STATIC_ROOT and STATIC_URL) and server config file (url alias). I wrote a short blog post with 3 steps. http://www.ycshao.com/?p=898.
dragon and ycshao have great answers. Just want to add that if you are running Apache server 2.4+. Instead of
Allow from all
You should use
Require all granted
It solved my static file hosting issue.
I have a full working web site that i ported to a new hosting company.
In some pages i have links to PDF on the server (they do exist!)
On the old server no problem.
On the new one when user clicks on the link : error 404 file does not exist...
Should i look in the web.config ? i don't know where to start
thanks
John
Start from the file read permissions.
You need to read the log files, or the event viewer to see whats really is the problem.
This is probably as simple as the files not being in the exact relative location to the page that they used to be in - e.g. there was a folder /pdfs in the root of the web where all the files were, now they are just in the root folder, and the links were not updated.
You've not said which version of IIS you're using. However for IIS5, this has been answered over at ServerFault -- see https://serverfault.com/questions/79094/serve-pdf-fies-in-iis
It should be similar for IIS6. It's possible your hosting provider may have revoked the MIME type so IIS no longer recognises it.
What you may end up needing to do if your hosting company isn't forthcoming is write a "file provider" page that takes the file to download on the query string (obviously with some sanity checking so folk can't request any old file), then just writes it out, bypassing what IIS would do normally.