Access File Using http From Local Server - html

I need to access some image file from my PC of any other PC in local. I have IP address of the server PC. I need to access the file (eg:img.png) at the server using http, Like http://192.168.1.30/home/user/img.png. So for accessing file from server do I need to install web server at the server side ?. And what are the procedure I have to follow on the server side?.
I want to do this in Linux.
Thanks in advance.......

Change your hyperlink tag by
\\IPAddress\folder\filename

Ensure you have python on your computer.(linux)
verify that you have linux by running python -V you should see something like v3.10
Navigate to the directory that you want to share files from
run python -m http.server 8000
Go to another device and access this newly created server by typing http://ipaddress:8000
You should see the files

Related

Remote InDesign server entrance to my local folders

I have used InDesign server locally and in properties, it goes like
indesign.instance=http://localhost:20055and works fine.
Now I try to use instances running on a remote server and in properties it goes as follows:
indesign.instances=http://##.#.#.11:7700,http://##.#.#.11:7701,http://##.#.#.11:7702
and my app connects to the server where InDesign server instances are running. When I execute my script it fails with an error that the file does not exist or cannot find a directory. I understand that instance does not know anything about my file system. But I know for sure it can be connected.
Could you please advise me on the correct approach?
You could share the file system you are working on over a shared folder. Then your Client will place a file into the shared file system and the server can find it.
Or, if it is a remote server without any direct network access, build a document service to upload a file to the server over HTTP.

Creating a conf file for a web server

For my web database I am trying to create a webserver so I need to make a conf file. When I try to edit my conf file and save it wont let me and says permission denied. I have already given myself read and write access, but I still don't have access to the edit the file. Here is the link to the resource I am using to set up my webserver : https://github.com/orsenthil/adminer-on-mac
I've been working with local web servers and mysql on Mac for over 15 years, so this recommendation is coming from that experience.
OS X updates will destroy your local web development environment every time you do a major OS update... Don't use the built in Apache, PHP and MySQL. Use Homebrew to install independent web server components.
Now to your problems:
/etc/hosts is a file not a directory. Each line is a separate record. The line they gave 127.0.0.1 apache.local just means that your local computer will be accessible from http://apache.local. This hosts file can be used to avoid DNS lookups for any website.
The conf file you are referring to is the Apache VirtualHost file? OS X is very protective about files in etc. Have you tried sudo? If you change the permissions to your user, Apache may not be able to function.

communication between flex AS3 and asterisk server?

I'm trying to upload a file using Flex to an Ubuntu server running asterisk. The server-side upload code looks correct; when I test it locally it successfully uploads the file to the server.
When I deploy the solution to our main server it doesn't upload the file. Debug mode shows an error: crossdomain.xml could not be found.
I have a crossdomain file, but I don't know where to put it. The main server is at 192.168.1.143, and the Ubuntu server is at 192.168.1.137.
After some reading I found it should be accessed from 192.168.1.137:8088/crossdomain.xml.
Where do I need to put the crossdomain.xml file on the Ubuntu server?
The crossdomain.xml file will be search on your webserver main page, which is on port 80 of the server you're trying to connect.
If you're using Apache, lighttpd, or others, and don't use a VirtualHost, chances are your must put your file at /var/www/crossdomain.xml.
You must be able to access it using http://192.168.1.137/crossdomain.xml, without any port indication.

How can I have apache load and display folders stored in a shared folder on another machine?

I am running an apache server on computer A. I use computer B with ubuntu desktop and A lamp server to develop code because it's more portable. I use ftp to put html files on computer A and they can be opened by connecting to computer A's ip via the browser, all simple enough. Now I would like via a link on my default page index.html to be redirected to an html file stored in a shared folder on computer B. Is such a thing possible and if so how can I make apache render the html page at such a location as smb://<network location>/var/www?
mkdir /var/www/remote # assuming your current document root is /var/www/
mount smb://network.host/var/www /var/www/remote/
Once you have it working you can edit /etc/fstab to make it permanent, or script step 2.
This will keep your current local server working, and allow you to access the remote path at http://127.0.0.1/remote/

How to open a HTML file on remote machine on local browser

I have written a simple HTML file on an EC2 instance. I want to check if it functions as desired. Is there a way I can open it on my local browser for testing?
EDIT: The output depends on some configurations which are present only on the remote machine!
You will need to install and start apache, placing the HTML vile in the www directory on the sever. Then open port 80 in your ec2 security group, but specify this rule to only be for the public IP of your home machine.
If its a HTML file you can open it directly from your desktop but if is a php file you need local server such as Xampp or wamp. If you want to edit it you can have a code editor such as notepad++ ect.. Hope this helps
If I understand you correctly. .. just open the file. It will run in your browser. It is just text. It is your browser that runs it.