Možeš da pingaš?
Kakvo ime teme na jednom forumu
Elem, napravio sam u xampp-u server i postavio sajtu kome pristupam sa adrese localhost/mojsajt . E sad na ovoj internet mreži se kači još 4-5 računara ali preko wifi konekcije, kako da svi ti računari pristupaju tom sajtu?
Kada kucam IP adresu 192.168.1.10 u browser telefona ili nekog od tih računara, browseri na uređajima automatski prepoznaju adresu kao localhost/mojsajt i ćorak, ne vide ništa.
U windows defender fajervolu apache i mysql inbound rules su podešeni po defaultu na allow the connection. Šta mi je sledeće činiti po ovom pitanju?
Šta je to?
0% loss
Last edited by ssaajjkkoo; 28-01-22 at 16:19.
Http koristi port 80 i za primanje i za slanje informacija. Provjeri je li ti u outbound pravilima dozvoljeno da xampp salje podatke sa toga porta. Sa obzirom da ti je ukljucen win defender, moj savjet je da ga iskljucis skroz da bi znao da nije do toga sigurno.
Druga stvar, valjalo bi da slikas kako bi trebalo da izgleda sajt i sliku kako izgleda korisnicima sa mreze. Moguce je da konekcije nema uopste?
Ne izgleda sajt korisnicima nikako, nema ga, nema konekcije
Inače sam od nekog indijca gledao video đe kaže da u inbound napravim profil za xampp i stavim portove 80 i 443 da su dozvoljeni. pa sam i to napravio
Last edited by ssaajjkkoo; 28-01-22 at 16:45.
Kako ti ide ta adresa na koju se kacis? Probaj da u browser ukucas bas ovako http://192.168.1.10:80 i vidi oce li, ako nece taj xampp server ti nije podignut uopste. Imas logove xampp servera, kopiraj pa postavi na pastebin i linkuj odje
Ne dajes konkretne informacije
Nelogican mi je dio da ostali racunari prepoznaju localhost/mojsajt kad ukucas adresu masine. Jesi li fajlove postavio u htdocs? Imas li index.html ili pocetna stranica ide drugacije?
Last edited by JigSaw; 29-01-22 at 11:10.
Pravo pitanje je šta se dešava sa servera kada probaš da otvoriš sajt.
Poslato sa kornjo komunikatora Z Fold 3
Sajt normalno radi na računaru na kojem je postavljen xampp i normalno se otvara na http://localhost/mojsajt
neće ni sa onim :80 niti sa :443 (ne znam ni treba li na ovo drugo ali sam svejedno probao)
Izvinjavam se svima, dok sam pisao ovo sam htio da isprobam i ovo 443 za svaki slučaj Elem, u phpmyadmin a i u ostale foldere sam prvo napravio/podigao jedan sajt (ovaj sa sličice), ali ubrzo sam se predomislio jer isprobavam servis i probao sam još jedan po istim pravilima, sve isto sam napravio i prije nego probah ovaj 443 ukucam adresu u telefonu ovog prvog sajta, tog sa sličice i on mi se normalno otvori u telefonu, ali ovaj drugi neće. I generalno gledano ovo mi je prvi put u životu da sam instalirao neki wordpress bilo đe. Nikada se prije nisam ovime zanimao, jesam sličnim stvarima, ali oko servera i databaza ne. Tako da ako vam je nešto nelogično a da ja nisam to primjetio, ja ni ne znam šta bi to trebalo biti.
Znači localhost/mojsajt2 se ne otvara niđe
Probaj ti sa IP/mojsajt...
Pušti local host...
Da vidim kako razriješi tu adresu.
Recimo 192.168.1.10/mojsajt i probaj samo 192.168.1.10 bez ičega.
Poslato sa kornjo komunikatora Z Fold 3
pa ja kada ukucam u browser telefona ili računara i upišem ip/mojsajt telefoni i računari automatski to prepoznaju i zamijene ip za riječ localhost
Pošto su svi ostali korisnici sa laptopova ođe koji trenutno nisu tu, samo sa telefona otvaram. Inače evo sada kada sam ukucao samo ip otvorila mi se stranica ip/dashboard od xampp-a
Kopiraj citav tekst iz httpd.conf fajla i postavi odje. Moguce da nisi ni podesio apache server da slusa na port 80
Sto znaci da gadjes defaultni index.html fajl u htdocs folderu. Ako si u tom folderu napravio novi folder dje si postavio fajlove za sajt onda moras taj directory da gadjes (http://ip:80/folder/)
Tako je.
Poslato sa kornjo komunikatora Z Fold 3
đe da nađem taj conf fajl?
mislim da sam našao:
#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. [email protected]
#
ServerAdmin postmaster@localhost
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName localhost:80
#
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other
# <Directory> blocks below.
#
<Directory />
AllowOverride none
Require all denied
</Directory>Nisam cio tekst kopirao, jer ga ima previše, gledajući ga reklo bi se da je info koju tražiš ođe neđe skrivena#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/xampp/htdocs"
<Directory "C:/xampp/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks Includes ExecCGI
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Require all granted
</Directory>
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \
default.php default.pl default.cgi default.asp default.shtml default.html default.htm \
home.php home.pl home.cgi home.asp home.shtml home.html home.htm
</IfModule>
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<Files ".ht*">
Require all denied
</Files>
#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog "logs/error.log"
#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn
<IfModule log_config_module>
#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
LogFormat "%h %l %u %t "%r" %>s %b" common
<IfModule logio_module>
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O" combinedio
</IfModule>
#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here. Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog "logs/access.log" common
#
# If you prefer a logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
CustomLog "logs/access.log" combined
</IfModule>
<IfModule alias_module>
#
# Redirect: Allows you to tell clients about documents that used to
# exist in your server's namespace, but do not anymore. The client
# will make a new request for the document at its new location.
# Example:
# Redirect permanent /foo http://www.example.com/bar
#
# Alias: Maps web paths into filesystem paths and is used to
# access content that does not live under the DocumentRoot.
# Example:
# Alias /webpath /full/filesystem/path
#
# If you include a trailing / on /webpath then the server will
# require it to be present in the URL. You will also likely
# need to provide a <Directory> section to allow access to
# the filesystem path.
#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the target directory are treated as applications and
# run by the server when requested rather than as documents sent to the
# client. The same rules about trailing "/" apply to ScriptAlias
# directives as to Alias.
#
ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/"
</IfModule>
<IfModule cgid_module>
#
# ScriptSock: On threaded servers, designate the path to the UNIX
# socket used to communicate with the CGI daemon of mod_cgid.
#
#Scriptsock cgisock
</IfModule>
#
# "C:/xampp/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "C:/xampp/cgi-bin">
AllowOverride All
Options None
Require all granted
</Directory>
<IfModule headers_module>
#
# Avoid passing HTTP_PROXY environment to CGI's on this or any proxied
# backend servers which have lingering "httpoxy" defects.
# 'Proxy' request header is undefined by the IETF, not listed by IANA
#
RequestHeader unset Proxy early
</IfModule>
<IfModule mime_module>
#
# TypesConfig points to the file containing the list of mappings from
# filename extension to MIME-type.
#
TypesConfig conf/mime.types
#
# AddType allows you to add to or override the MIME configuration
# file specified in TypesConfig for specific file types.
#
#AddType application/x-gzip .tgz
#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
#
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
AddHandler cgi-script .cgi .pl .asp
# For type maps (negotiated resources):
#AddHandler type-map var
#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</IfModule>
I kako ti izgleda htdocs folder?
Uredno
folder za sajt 1, za sajt 2, dashboard, img, webalizer, xampp, applications.html, bitnami.css, favicon.ico, index.php.
Onda kada oces da pristupis sajtu 1 kucas
http://ip/ime foldera za sajt1/
Isto tako za sajt 2
Da ne bi morao ovo da radis potrebno je da napravis virtuelne hostove i da podesis dns.
Ja sada nisam siguran da sam te razumio? Ovaj prvi dio poruke do momenta đe kažeš "isto tako za sajt 2", to sve i pokušavam ali radi samo za sajt 1 a drugo opet ne znam šta su virtuelni hostovi, ali svakako, najbitniji detalj, da ne mučim sad i tebe i sebe je taj da meni ovo nije preophodno nego sam prosto htio da mogu pokazati bratu sajt a da ne moram da mu šaljem skreenshoot ili da ne mora da mi prilazi. Tako da hvala ti što si se trudio, vjerujem da si sada ovdje da bi to završio za 10 minuta, ali ovako je to samo mučenje za oboje sobzirom da ne razumijem terminologiju i rad mreža, programa i čuda.
Između ostalog ni ovaj sajt 1 što se otvara na drugim računarima i telefonima ne otvara fotografije sa sajta već samo neuređeni tekst, bukvalno kao da samo osnovnu index stranicu vuče a ostali podaci su potpuno nebitni
Last edited by ssaajjkkoo; 30-01-22 at 19:15.
Ima li ovo kakve veze sa ičim?
09:50:05 [mercury] Problem detected!
09:50:05 [mercury] Port 25 in use by ""C:\Program Files (x86)\hMailServer\Bin\hMailServer.exe" RunAsService" with PID 4284!
09:50:05 [mercury] Mercury WILL NOT start without the configured ports free!
09:50:05 [mercury] You need to uninstall/disable/reconfigure the blocking application
09:50:05 [mercury] or reconfigure Mercury and the Control Panel to listen on a different port
09:50:05 [mercury] Problem detected!
09:50:05 [mercury] Port 110 in use by ""C:\Program Files (x86)\hMailServer\Bin\hMailServer.exe" RunAsService" with PID 4284!
09:50:05 [mercury] Mercury WILL NOT start without the configured ports free!
09:50:05 [mercury] You need to uninstall/disable/reconfigure the blocking application
09:50:05 [mercury] or reconfigure Mercury and the Control Panel to listen on a different port
09:50:05 [mercury] Problem detected!
09:50:05 [mercury] Port 143 in use by ""C:\Program Files (x86)\hMailServer\Bin\hMailServer.exe" RunAsService" with PID 4284!
09:50:05 [mercury] Mercury WILL NOT start without the configured ports free!
09:50:05 [mercury] You need to uninstall/disable/reconfigure the blocking application
09:50:05 [mercury] or reconfigure Mercury and the Control Panel to listen on a different port
Nema, to su portovi za pop3 i imap. Koristi ih mail server.
Kako serviras slike na prvom sajtu? Vuces li ih preko html-a ili pozivas neki js fajl?
wordpress sve završava, ne znam kako funkcioniše.
Upravo sam dodao i treći wp sajt na serveru i on može da se čita kao i prvi sa određenim greškama, što dalje implicira da je do drugog sajta problem, provjerio sam 10 puta minimum da li kucam dobro adresu i tu sam sasvim siguran da je adresa uredu, ali ne čita ostale stranice osim vjerovatno samo index stranice.
Sto brate nisi napravio na neki free host i upload-ovao citav sajt, a odje se mucis da podesis da sam hostujes
https://www.000webhost.com/
Mnogo je jednostavnije sve srediti u lokalu nego online, pa onda samo dignuti site live na hosting.
@ssaajjkkoo
Veoma cudna situacija, em sto ti nece jedan sajt uopste da otvori, em sto druge sajtove otvara ali sa "problemima" kao sto rece. Probaj dva sajta staviti u novi folder u htdocs, tipa htdocs/novisajtovi i vidi sta se desava.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks