*** the htdocs folder is the default used for MAMP, you can change this in preference, however – if you do so you’ll have to change the directory in this file. Options Indexes FollowSymLinks MultiViews Now open up your text editor and enter this:ĭocumentRoot /Applications/MAMP/htdocs/sandbox.local/ Include /Applications/MAMP/conf/apache/vhosts/*.confįrom there, create a folder in that same apache directory called ‘vhosts’. Navigate to the bottom of the file where it says: “# Section 3: Virtual Hosts”, specifically: “# NameVirtualHost *” Head to your /Applications/MAMP/conf/apache folder, and open the file called: nf in your text editor. So all of my sites, I type in: sitename.local in my browser One of the things I’ve done for a while now is to create virtual hosts so that I can enter a domain into my browser. If it was running as So if you ever open port 8888, think about this ) He get a file in your htdocs folder and runs this command A let’s say cacker finds your server and deiced to have fun. Because if you run apache as a different users as your own account all of your files are always safe.Īn little example: Running as your own user. (i’ve had a lot of time i just got a 502 error because the files had the wrong owner) However in hosting or even server that are accessible to the Internet this is a need. In local testing this can really be a pain. Becasue the user running apache has to have at least read rights and some times write rights on all files in your htdocs folder. I believe the user the apache user runs as also determains the right apache has ( as in read/write). So if i’m wrong on the next bit please correct me. Now i don’t own a mac so don’t have the ability to know if this is the same as on linux but i think it on basic level is. You can learn more precisely how to do all of this by checking out the websites of various security camera producers.In the video you had a comment about the apache user box. The company software in the middle takes care of the housekeeping. So the camera connects to your home computer by using this alias. Owners of remote cameras have to contract with one of several companies that provide a URL to you that, when sent out, actually goes to the aforesaid company which then assigned a numerical connection for the duration of your use of the computer and remote camera. (There wouldn't be enough URLs if every computer had to have its own unique address in firmware. Your computer negotiates with a remote computer to secure for you a temporary numerical URL. The big problem comes because your home computer gets a different numerical URL every time you boot up your computer and do something that makes it try to reach an internet site. I think your problem is very much like the problem experienced when somebody has a remote security camera in one part of the city, and they want it to send video when required to their home computer. Your database probably does not have a stable URL. I have seen many examples on Oracle that have their sample programs connect from your computer to their database over the internet.Their database has a stable URL. One of the first things to do is to verify that you are giving your database processing program the correct URL. I am not sure that I understand what you are trying to do.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |